Method: Faraday::Adapter::HTTPX::ParallelManager::ResponseHandler#on_response

Defined in:
lib/httpx/adapters/faraday.rb

#on_response(&blk) ⇒ Object



166
167
168
169
170
171
172
173
174
175
# File 'lib/httpx/adapters/faraday.rb', line 166

def on_response(&blk)
  if blk
    @on_response = ->(response) do
      blk.call(response)
    end
    self
  else
    @on_response
  end
end