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§
source§impl<'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