pub struct Request {
    pub request_method: String,
    pub uri: Uri,
    pub headers: HeaderMap<HeaderValue>,
    pub body: Option<Vec<u8>>,
}
Expand description

A data structure containing the elements of the request (some client-supplied, some service-supplied) involved in the SigV4 verification process.

Fields

request_method: String

The request method (GET, PUT, POST) (client).

uri: Uri

The URI path being accessed (client).

headers: HeaderMap<HeaderValue>

The HTTP headers sent with the request (client).

body: Option<Vec<u8>>

The request body (if any) (client).

Implementations

Create a Request from an HTTP request.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.