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?
- #disposition : String
- #filename : String?
- #headers
- #status : Int
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)
#