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

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

Methods

Public Class

  1. new

Public Instance

  1. env
  2. method_missing
  3. on_complete
  4. on_response
  5. respond_to_missing?

Attributes

env [R]

Public Class methods

new (env)
[show source]
   # File lib/httpx/adapters/faraday.rb
95 def initialize(env)
96   @env = env
97 end

Public Instance methods

method_missing (meth, *args, &blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
123 def method_missing(meth, *args, &blk)
124   if @env && @env.respond_to?(meth)
125     @env.__send__(meth, *args, &blk)
126   else
127     super
128   end
129 end
on_complete (&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
110 def on_complete(&blk)
111   if block_given?
112     @on_complete = blk
113     self
114   else
115     @on_complete
116   end
117 end
on_response (&blk)
[show source]
    # File lib/httpx/adapters/faraday.rb
 99 def on_response(&blk)
100   if block_given?
101     @on_response = lambda do |response|
102       blk.call(response)
103     end
104     self
105   else
106     @on_response
107   end
108 end
respond_to_missing? (meth)
[show source]
    # File lib/httpx/adapters/faraday.rb
119 def respond_to_missing?(meth)
120   @env.respond_to?(meth)
121 end