class Lucky::DataResponse
Overview
data result, filename: "my_report.csv"
end end
Defined in:
lucky/data_response.crConstant Summary
-
DEFAULT_STATUS =
200
Constructors
Instance Method Summary
- #content_type : String
- #context : HTTP::Server::Context
- #data : String
- #debug_message : String | Nil
- #disposition : String
- #filename : String?
- #headers
- #status : Int
Instance methods inherited from class Lucky::Response
debug_message : String | Nil
debug_message,
print
print,
status : Int
status
Instance methods inherited from class Object
blank? : Bool
blank?,
present? : Bool
present?
Constructor Detail
def self.new(context : HTTP::Server::Context, data : String, content_type : String = "application/octet-stream", disposition : String = "attachment", filename : String | Nil = nil, status : Int32 | Nil = nil, debug_message : String | Nil = nil)
#