class ActiveRestClient::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/active_rest_client/proxy_base.rb, line 164 def initialize(response) @response = response end
Public Instance Methods
body()
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 176 def body @response.body end
body=(value)
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 180 def body=(value) @response.body = value value end
finished?()
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 189 def finished? true end
headers()
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 168 def headers @response.response_headers end
on_complete() { |response| ... }
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 185 def on_complete yield(@response) end
status()
click to toggle source
# File lib/active_rest_client/proxy_base.rb, line 172 def status @response.status end