Class/Module Index [+]

Quicksearch

Faraday::Adapter

Public: This is a base class for all Faraday adapters. Adapters are responsible for fulfilling a Faraday request.

Constants

CONTENT_LENGTH

Public Instance Methods

call(env) click to toggle source
# File lib/faraday/adapter.rb, line 33
def call(env)
  env.clear_body if env.needs_body?
end
save_response(env, status, body, headers = nil) click to toggle source
# File lib/faraday/adapter.rb, line 37
def save_response(env, status, body, headers = nil)
  env.status = status
  env.body = body
  env.response_headers = Utils::Headers.new.tap do |response_headers|
    response_headers.update headers unless headers.nil?
    yield(response_headers) if block_given?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.