class
Amazonite::Core::ParsedResponse(T)
- Amazonite::Core::ParsedResponse(T)
- Amazonite::Core::Response
- Reference
- Object
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.crConstructors
-
.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.
-
.new(http : HTTP::Client::Response)
Parses
#resultasTfrom the raw response body.
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.