Struct aws_sdk_rust::aws::common::signature::SignedRequest [] [src]

pub struct SignedRequest<'a> {
    // some fields omitted
}

A data structure for all the elements of an HTTP request that are involved in the Amazon Signature Version 4 signing process version - represents the Signature version. The default is 4 but it can also be set to 2 for older environments.

Methods

impl<'a> SignedRequest<'a>
[src]

Default constructor

Allows for overriding inital Signature used when struct was created.

Allows for overriding inital bucket name used when struct was created.

Use this for adding an actual endpoint such as s3.us-east-1.amazon.com or one of your choice. hostname in this context means the FQDN less the bucket name if using Virtual Buckets.

Allows you to set the UTF8 payload in bytes.

Sets a new set of Params.

Sets the ssl flag used for formatting the default Endpoint. Mainly used with proxies and inside firewalls where certificates may not be used (non AWS environments). Default is true.

Returns the ssl bool flag. Mainly used for inside firewalls where proxies are used. Default is true.

Returns the bucket name.

Returns the HTTP Verb: GET, POST, DELETE, HEAD.

Returns the Signature enum value: V2 or V4.

Returns the path (uri) used for calculating signature.

Returns the Canonical URI used by the signature process.

Returns the Canonical Query used by the signature process.

Returns the UTF8 byte slice of the payload.

Returns the Vec of headers.

Returns hostname value or builds a new one based on the AWS S3 service and Region.

If the header key exists in headers, set it to blank/unoccupied:

Add a value to the array of headers for the specified key. Headers are kept sorted by key name for use at signing (BTreeMap)

Removes header if exists and then adds new one.

Adds to the Params Vec.

Called by Requests and determines which signature function to use.

Trait Implementations

impl<'a> Debug for SignedRequest<'a>
[src]

Formats the value using the given formatter.