class Faraday::Request

Request represents a single HTTP request for a Faraday adapter to make. @see lib/faraday/request.rb Original class location

Used to setup URLs, params, headers, and the request body in a sane manner.

@example

@connection.post do |req|
  req.url 'http://localhost', 'a' => '1' # 'http://localhost?a=1'
  req.headers['b'] = '2' # Header
  req.params['c']  = '3' # GET Param
  req['b']         = '2' # also Header
  req.body = 'abc'
end

@!attribute method

@return [Symbol] the HTTP method of the Request

@!attribute path

@return [URI, String] the path

@!attribute params

@return [Hash] query parameters

@!attribute headers

@return [Faraday::Utils::Headers] headers

@!attribute body

@return [Hash] body

@!attribute options

@return [RequestOptions] options

rubocop:disable Style/StructInheritance