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_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