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
157 def initialize(env)
158   @env = env
159   super
160 end

Public Instance methods

on_complete(&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
173 def on_complete(&blk)
174   if blk
175     @on_complete = blk
176     self
177   else
178     @on_complete
179   end
180 end
on_response(&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
162 def on_response(&blk)
163   if blk
164     @on_response = ->(response) do
165       blk.call(response)
166     end
167     self
168   else
169     @on_response
170   end
171 end