class Lucky::DataResponse

Overview

data result, filename: "my_report.csv"

end end

Defined in:

lucky/data_response.cr

Constant Summary

DEFAULT_STATUS = 200

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def content_type : String #

[View source]
def context : HTTP::Server::Context #

[View source]
def data : String #

[View source]
def debug_message : String | Nil #

[View source]
def disposition : String #

[View source]
def filename : String? #

[View source]
def headers #

[View source]
def print #

[View source]
def status : Int #

[View source]