class

Amazonite::Core::ParsedResponse(T)

Inherits Amazonite::Core::Response < Reference < Object

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.

Constructors

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.

Source

Parses result as T from the raw response body.

Source

Instance methods

result
Source