class Seahorse::Client::Response
def initialize(options = {})
(**options)
-
:body
(String
) -- -
:headers
(Http::Headers
) -- -
:status_code
(Integer
) -- -
:context
(RequestContext
) --
def initialize(options = {}) @context = options[:context] || RequestContext.new @data = options[:data] @error = options[:error] @http_request = @context.http_request @http_response = @context.http_response @http_response.on_error do |error| @error = error end end