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]
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]
&self,
signing_key_kind: SigningKeyKind,
region: A1,
service: A2
) -> Result<GetSigningKeyRequest, SignatureError> where
A1: AsRef<str>,
A2: AsRef<str>,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
impl RefUnwindSafe for Request
impl UnwindSafe for Request
impl UnwindSafe for Request