#[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>
👎Deprecated: Prefer the make_http_1x_request()
instead by enabling the http-1x
feature.
pub fn make_http_02x_request<B>(&self, body: B) -> Request<B>
make_http_1x_request()
instead by enabling the http-1x
feature.Given a body, produce an http::Request
from this PresignedRequest
sourcepub fn into_http_02x_request<B>(self, body: B) -> Request<B>
👎Deprecated: Prefer the into_http_1x_request
instead by enabling the http-1x
feature.
pub fn into_http_02x_request<B>(self, body: B) -> Request<B>
into_http_1x_request
instead by enabling the http-1x
feature.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.