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
 99 def initialize(env)
100   @env = env
101 end

Public Instance methods

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