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
Source
# File lib/flexirest/proxy_base.rb, line 168 def initialize(response) @response = response end
Public Instance Methods
Source
# File lib/flexirest/proxy_base.rb, line 184 def body=(value) @response.body = value value end
Source
# File lib/flexirest/proxy_base.rb, line 172 def headers @response.response_headers end
Source
# File lib/flexirest/proxy_base.rb, line 189 def on_complete yield(@response) end