#[non_exhaustive]pub struct PresignedRequest { /* private fields */ }Expand description
Represents a presigned request. This only includes the HTTP request method, URI, and headers.
This struct has conversion convenience functions:
Implementations§
Source§impl PresignedRequest
impl PresignedRequest
Sourcepub fn headers(&self) -> impl Iterator<Item = (&str, &str)>
pub fn headers(&self) -> impl Iterator<Item = (&str, &str)>
Returns any HTTP headers that need to go along with the request, except for Host,
which should be sent based on the endpoint in the URI by the HTTP client rather than
added directly.
Sourcepub fn make_http_02x_request<B>(&self, body: B) -> Request<B>
pub fn make_http_02x_request<B>(&self, body: B) -> Request<B>
Given a body, produce an http::Request from this PresignedRequest
Sourcepub fn into_http_02x_request<B>(self, body: B) -> Request<B>
pub fn into_http_02x_request<B>(self, body: B) -> Request<B>
Converts this PresignedRequest directly into an http request.
Trait Implementations§
Source§impl Clone for PresignedRequest
impl Clone for PresignedRequest
Auto Trait Implementations§
impl !Freeze for PresignedRequest
impl !RefUnwindSafe for PresignedRequest
impl Send for PresignedRequest
impl Sync for PresignedRequest
impl Unpin for PresignedRequest
impl !UnwindSafe for PresignedRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.