pub struct VerifyRequest<'a> {
pub method: &'a str,
pub path: &'a str,
pub query: &'a str,
pub headers: &'a [(String, String)],
pub body: &'a [u8],
}Expand description
The fields of an incoming HTTP request relevant to SigV4 verification.
Held separately from the full HTTP request so tests can build synthetic requests without constructing an axum/hyper payload.
Fields§
§method: &'a str§path: &'a strURI path as-received (already URL-decoded once by the HTTP framework).
query: &'a strQuery string without the leading ?. For presigned URLs the
X-Amz-Signature parameter is removed before signing.
headers: &'a [(String, String)]Lowercased header name → header value. Multi-valued headers should be
joined by ", ". Built by headers_from_http for real requests.
body: &'a [u8]Full request body. Required unless X-Amz-Content-Sha256 is set.
Trait Implementations§
Source§impl<'a> Clone for VerifyRequest<'a>
impl<'a> Clone for VerifyRequest<'a>
Source§fn clone(&self) -> VerifyRequest<'a>
fn clone(&self) -> VerifyRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for VerifyRequest<'a>
impl<'a> RefUnwindSafe for VerifyRequest<'a>
impl<'a> Send for VerifyRequest<'a>
impl<'a> Sync for VerifyRequest<'a>
impl<'a> Unpin for VerifyRequest<'a>
impl<'a> UnsafeUnpin for VerifyRequest<'a>
impl<'a> UnwindSafe for VerifyRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more