class Lambda::Builder::HTTPResponse

Defined in:

lambda_builder/http_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(status_code : Int32 = 200, body : JSON::Any | String | Nil = nil) #

[View source]

Instance Method Detail

def as_json : JSON::Any #

Returns a JSON::Any object for passing on to AWS


[View source]
def body : String | JSON::Any | Nil #

[View source]
def body=(body : String | JSON::Any | Nil) #

[View source]
def headers : HTTP::Headers #

[View source]
def status_code : Int32 #

[View source]
def to_json(json : JSON::Builder) #

[View source]