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