class Faraday::Adapter::HTTPX::ParallelManager::ResponseHandler

  1. lib/httpx/adapters/faraday.rb
Superclass: SimpleDelegator

Methods

Public Class

  1. new

Public Instance

  1. env
  2. on_complete
  3. on_response

Attributes

env [R]

Public Class methods

new(env)
[show source]
    # File lib/httpx/adapters/faraday.rb
170 def initialize(env)
171   @env = env
172   super
173 end

Public Instance methods

on_complete(&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
186 def on_complete(&blk)
187   if blk
188     @on_complete = blk
189     self
190   else
191     @on_complete
192   end
193 end
on_response(&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
175 def on_response(&blk)
176   if blk
177     @on_response = ->(response) do
178       blk.call(response)
179     end
180     self
181   else
182     @on_response
183   end
184 end