Struct aws_sigv4::http_request::SignableRequest
source · [−]#[non_exhaustive]pub struct SignableRequest<'a> { /* private fields */ }
Expand description
Represents all of the information necessary to sign an HTTP request.
Implementations
sourceimpl<'a> SignableRequest<'a>
impl<'a> SignableRequest<'a>
sourcepub fn new(
method: &'a Method,
uri: &'a Uri,
headers: &'a HeaderMap<HeaderValue>,
body: SignableBody<'a>
) -> Self
pub fn new(
method: &'a Method,
uri: &'a Uri,
headers: &'a HeaderMap<HeaderValue>,
body: SignableBody<'a>
) -> Self
Creates a new SignableRequest
. If you have an http::Request
, then
consider using SignableRequest::from
instead of new
.
sourcepub fn headers(&self) -> &HeaderMap<HeaderValue>
pub fn headers(&self) -> &HeaderMap<HeaderValue>
Returns the request headers
sourcepub fn body(&self) -> &SignableBody<'_>
pub fn body(&self) -> &SignableBody<'_>
Returns the signable body
Trait Implementations
sourceimpl<'a> Debug for SignableRequest<'a>
impl<'a> Debug for SignableRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SignableRequest<'a>
impl<'a> Send for SignableRequest<'a>
impl<'a> Sync for SignableRequest<'a>
impl<'a> Unpin for SignableRequest<'a>
impl<'a> UnwindSafe for SignableRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more