Struct scratchstack_aws_signature::Request[][src]

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

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

impl Request[src]

pub fn from_http_request_parts(parts: &Parts, body: Option<Vec<u8>>) -> Self[src]

Create a Request from an HTTP request.

pub fn to_get_signing_key_request<A1, A2>(
    &self,
    signing_key_kind: SigningKeyKind,
    region: A1,
    service: A2
) -> Result<GetSigningKeyRequest, SignatureError> where
    A1: AsRef<str>,
    A2: AsRef<str>, 
[src]

Trait Implementations

impl Debug for Request[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.