class Amazonite::Core::ParsedResponse(T)

Overview

The response from a client operation that returns data - #result is the operation's parsed output shape (type T); http (inherited from Response) is the raw HTTP response.

Defined in:

core/parsed_response.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amazonite::Core::Response

http : HTTP::Client::Response http

Constructor methods inherited from class Amazonite::Core::Response

new(http : HTTP::Client::Response) new

Constructor Detail

def self.new(http : HTTP::Client::Response, result : T) #

rest-json operations whose output binds members to headers, the status code, or a raw payload build the result themselves (rather than parsing it whole from a JSON body) and hand it in directly.


[View source]
def self.new(http : HTTP::Client::Response) #

Parses #result as T from the raw response body.


[View source]

Instance Method Detail

def result #

[View source]