Class: Excon::Middleware::ResponseParser

Inherits:
Base
  • Object
show all
Defined in:
lib/excon/middlewares/response_parser.rb

Instance Method Summary collapse

Methods inherited from Base

#error_call, #initialize, #request_call

Constructor Details

This class inherits a constructor from Excon::Middleware::Base

Instance Method Details

#response_call(datum) ⇒ Object



4
5
6
7
8
9
# File 'lib/excon/middlewares/response_parser.rb', line 4

def response_call(datum)
  unless datum.has_key?(:response)
    datum = Excon::Response.parse(datum[:connection].send(:socket), datum)
  end
  @stack.response_call(datum)
end