Struct aws_sdk_s3::presigning::PresignedRequest
source · #[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.
sourcepub fn make_http_1x_request<B>(&self, body: B) -> Request<B>
Available on crate feature http-1x
only.
pub fn make_http_1x_request<B>(&self, body: B) -> Request<B>
http-1x
only.Given a body, produce an http_1x::Request
from this PresignedRequest
sourcepub fn into_http_1x_request<B>(self, body: B) -> Request<B>
Available on crate feature http-1x
only.
pub fn into_http_1x_request<B>(self, body: B) -> Request<B>
http-1x
only.Converts this PresignedRequest
directly into an http_1x
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.