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

pub struct SignedRequest<'a> {
    pub method: String,
    pub service: String,
    pub region: Region,
    pub path: String,
    pub headers: BTreeMap<String, Vec<Vec<u8>>>,
    pub params: Params,
    pub bucket: String,
    pub hostname: Option<String>,
    pub payload: Option<&'a [u8]>,
    pub content_type: Option<String>,
    pub path_options: Option<String>,
    pub canonical_query_string: String,
    pub canonical_uri: String,
    pub endpoint: &'a Endpoint,
}

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.

Fields

Methods

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

Default constructor

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.

Sets the path_options which allows you to prepend a query path option to the normal query path string but not have it included in the signature. Only certain third party products use this.

Allows you to set the UTF8 payload in bytes.

Sets a new set of Params.

Returns the bucket name.

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

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.

Returns the path_options which allows you to prepend a query path option to the normal query path string but not have it included in the signature. Only certain third party products use this.

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.