Method: Faraday::Request#to_env

Defined in:
lib/faraday/request.rb

#to_env(connection) ⇒ Env

Returns the Env for this Request.

Returns:

  • (Env)

    the Env for this Request



129
130
131
132
# File 'lib/faraday/request.rb', line 129

def to_env(connection)
  Env.new(http_method, body, connection.build_exclusive_url(path, params),
          options, headers, connection.ssl, connection.parallel_manager)
end