Attributes
env | [R] |
Public Class methods
new(env)
[show source]
# File lib/httpx/adapters/faraday.rb 161 def initialize(env) 162 @env = env 163 super 164 end
Public Instance methods
on_complete(&blk)
[show source]
# File lib/httpx/adapters/faraday.rb 177 def on_complete(&blk) 178 if blk 179 @on_complete = blk 180 self 181 else 182 @on_complete 183 end 184 end
on_response(&blk)
[show source]
# File lib/httpx/adapters/faraday.rb 166 def on_response(&blk) 167 if blk 168 @on_response = ->(response) do 169 blk.call(response) 170 end 171 self 172 else 173 @on_response 174 end 175 end