Struct scratchstack_aws_signature::Request
source · [−]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: StringThe request method (GET, PUT, POST) (client).
uri: UriThe 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
sourceimpl Request
impl Request
sourcepub fn from_http_request_parts(parts: &Parts, body: Option<Vec<u8>>) -> Self
pub fn from_http_request_parts(parts: &Parts, body: Option<Vec<u8>>) -> Self
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>,
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more