class Amazonite::ApiGateway::TestInvokeMethodResponse

Overview

Represents the response of the test invoke request in the HTTP method.

Included Modules

Defined in:

api_gateway/test_invoke_method_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(status : Int32 | Nil = nil, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil, multi_value_headers : Hash(String, Array(String)) | Nil = nil, log : String | Nil = nil, latency : Int64 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def body : String | Nil #

The body of the HTTP response.


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

The body of the HTTP response.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def headers : Hash(String, String) | Nil #

The headers of the HTTP response.


[View source]
def headers=(headers : Hash(String, String) | Nil) #

The headers of the HTTP response.


[View source]
def latency : Int64 | Nil #

The execution latency, in ms, of the test invoke request.


[View source]
def latency=(latency : Int64 | Nil) #

The execution latency, in ms, of the test invoke request.


[View source]
def log : String | Nil #

The API Gateway execution log for the test invoke request.


[View source]
def log=(log : String | Nil) #

The API Gateway execution log for the test invoke request.


[View source]
def multi_value_headers : Hash(String, Array(String)) | Nil #

The headers of the HTTP response as a map from string to list of values.


[View source]
def multi_value_headers=(multi_value_headers : Hash(String, Array(String)) | Nil) #

The headers of the HTTP response as a map from string to list of values.


[View source]
def status : Int32 | Nil #

The HTTP status code.


[View source]
def status=(status : Int32 | Nil) #

The HTTP status code.


[View source]
def validate! : Nil #

[View source]