Struct rusoto_core::signature::SignedRequest [] [src]

pub struct SignedRequest {
    pub method: String,
    pub service: String,
    pub region: Region,
    pub path: String,
    pub headers: BTreeMap<String, Vec<Vec<u8>>>,
    pub params: Params,
    pub scheme: Option<String>,
    pub hostname: Option<String>,
    pub payload: Option<Vec<u8>>,
    pub canonical_query_string: String,
    pub canonical_uri: String,
}

A data structure for all the elements of an HTTP request that are involved in the Amazon Signature Version 4 signing process

Fields

The HTTP Method

The AWS Service

The AWS Region

The HTTP request path

The HTTP Request Headers

The HTTP request paramaters

The HTTP/HTTPS protocol

The AWS hostname

The HTTP Content

The Standardised query string

The Standardised URI

Methods

impl SignedRequest
[src]

[src]

Default constructor

[src]

Sets the value of the "content-type" header.

[src]

Sets the target hostname

[src]

Sets the target hostname using the current service type and region

See the implementation of build_hostname to see how this is done

[src]

Sets the new body (payload)

[src]

Returns the current HTTP method

[src]

Returns the current path

[src]

Invokes canonical_uri(path) to return a canonical path

[src]

Returns the current canonical URI

[src]

Returns the current query string

Converts a paramater such as "example param": "examplekey" into "&example+param=examplekey"

[src]

Returns the current headers

[src]

Returns the current http scheme (https or http)

[src]

Converts hostname to String if it exists, else it invokes build_hostname()

[src]

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

[src]

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

[src]

Adds parameter to the HTTP Request

[src]

Sets paramaters with a given variable of Params type

[src]

Signs the request using Amazon Signature version 4 to verify identity. Authorization header uses AWS4-HMAC-SHA256 for signing.

[src]

Signs the request using Amazon Signature version 4 to verify identity. Authorization header uses AWS4-HMAC-SHA256 for signing.

Trait Implementations

impl Debug for SignedRequest
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SignedRequest

impl Sync for SignedRequest