Class: Excon::Middleware::ResponseParser
- Defined in:
- lib/excon/middlewares/response_parser.rb
Instance Method Summary collapse
Methods inherited from Base
#error_call, #initialize, #request_call, valid_parameter_keys
Constructor Details
This class inherits a constructor from Excon::Middleware::Base
Instance Method Details
#response_call(datum) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/excon/middlewares/response_parser.rb', line 5 def response_call(datum) unless datum.has_key?(:response) datum = Excon::Response.parse(datum[:connection].send(:socket), datum) end if datum.has_key?(:logger) datum[:response][:logger] = datum[:logger] end @stack.response_call(datum) end |