class Seahorse::Client::Http::Response
def initialize(options = {})
(**options)
-
:body
(IO
) -- -
:headers
(Headers
) -- -
:status_code
(Integer
) --
def initialize(options = {}) @status_code = options[:status_code] || 0 @headers = options[:headers] || Headers.new @body = options[:body] || StringIO.new @listeners = Hash.new { |h,k| h[k] = [] } @complete = false @done = nil @error = nil end