Class: Faraday::Adapter::HTTP

Inherits:
Faraday::Adapter show all
Defined in:
lib/faraday/adapter/http.rb

Overview

HTTP.rb adapter.

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Faraday::Response

Takes the environment and performs the request.

Parameters:

  • env (Faraday::Env)

    the request environment.

Returns:

  • (Faraday::Response)

    the response.



14
15
16
17
18
# File 'lib/faraday/adapter/http.rb', line 14

def call(env)
  super
  perform_request(env)
  @app.call(env)
end