class Flexirest::FaradayResponseProxy
FaradayResponseProxy
acts just like a Faraday
Response object, however it always resolves the request immediately regardless of whether it is inside an in_parallel block or not
Public Class Methods
new(response)
click to toggle source
# File lib/flexirest/proxy_base.rb, line 168 def initialize(response) @response = response end
Public Instance Methods
body()
click to toggle source
# File lib/flexirest/proxy_base.rb, line 180 def body @response.body end
body=(value)
click to toggle source
# File lib/flexirest/proxy_base.rb, line 184 def body=(value) @response.body = value value end
finished?()
click to toggle source
# File lib/flexirest/proxy_base.rb, line 193 def finished? true end
headers()
click to toggle source
# File lib/flexirest/proxy_base.rb, line 172 def headers @response.response_headers end
on_complete() { |response| ... }
click to toggle source
# File lib/flexirest/proxy_base.rb, line 189 def on_complete yield(@response) end
status()
click to toggle source
# File lib/flexirest/proxy_base.rb, line 176 def status @response.status end