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.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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>
Creates a shared type from an unshared type.