Class AWS::Http::Request
In: lib/aws/http/request.rb
lib/aws/http/request_param.rb
Parent: Object

Base class for all service reqeusts.

Methods

Classes and Modules

Class AWS::Http::Request::CaseInsensitiveHash
Class AWS::Http::Request::Param

Attributes

access_key_id  [RW]  @return [String] the AWS access key ID used to authorize the
  request
headers  [R]  @return [CaseInsensitiveHash] request headers
host  [RW]  @return [String] hostname of the request
http_method  [RW]  @return [String] GET, PUT POST, HEAD or DELETE, defaults to POST
params  [R]  @return [Array] An array of request params, each param responds to
  #name and #value.
path  [R]  @return [String] path of the request URI, defaults to /
proxy_uri  [RW]  @return [nil, URI] The URI to the proxy server requests are
  sent through if configured.  Returns nil if there is no proxy.

Public Class methods

Returns a new empty http request object.

Public Instance methods

Adds a request param.

@overload add_param(param_name, param_value = nil)

  Add a param (name/value)
  @param [String] param_name
  @param [String] param_value Leave blank for sub resources

@overload add_param(param_obj)

  Add a param (object)
  @param [Param] param_obj

@return [String, nil] Returns the request body.

@return [String, nil] Returns the requesty querystring.

@return [String] Path to a bundle of CA certs in PEM format;

  the HTTP handler should use this to verify all HTTPS
  requests if {#ssl_verify_peer?} is true.

@param [String] ca_file Path to a bundle of CA certs in PEM

  format; the HTTP handler should use this to verify all HTTPS
  requests if {#ssl_verify_peer?} is true.

@param [Boolean] verify_peer If the client should verify the

  peer certificate or not.

@return [Boolean] If the client should verify the peer

  certificate or not.

@return [String] the request uri

@return [String] Returns the request params url encoded, or nil if

  this request has no params.

@param [Boolean] ssl If the request should be sent over ssl or not.

@return [Boolean] If this request should be sent over ssl or not.

[Validate]