pub type HttpRequest = Request;
Expand description
Type alias for the HTTP request type that the orchestrator uses.
Aliased Type§
struct HttpRequest { /* private fields */ }
Implementations
Source§impl<B> Request<B>
impl<B> Request<B>
Sourcepub fn try_into_http02x(self) -> Result<Request<B>, HttpError>
pub fn try_into_http02x(self) -> Result<Request<B>, HttpError>
Converts this request into an http 0.x request.
Depending on the internal storage type, this operation may be free or it may have an internal cost.
Sourcepub fn try_into_http1x(self) -> Result<Request<B>, HttpError>
pub fn try_into_http1x(self) -> Result<Request<B>, HttpError>
Converts this request into an http 1.x request.
Depending on the internal storage type, this operation may be free or it may have an internal cost.
Sourcepub fn map<U>(self, f: impl Fn(B) -> U) -> Request<U>
pub fn map<U>(self, f: impl Fn(B) -> U) -> Request<U>
Update the body of this request to be a new body.
Sourcepub fn into_parts(self) -> RequestParts<B>
pub fn into_parts(self) -> RequestParts<B>
Convert this request into its parts.
Sourcepub fn headers_mut(&mut self) -> &mut Headers
pub fn headers_mut(&mut self) -> &mut Headers
Returns a mutable reference to the header map
Sourcepub fn uri_mut(&mut self) -> &mut Uri
pub fn uri_mut(&mut self) -> &mut Uri
Returns a mutable reference the the URI of this http::Request
Sourcepub fn set_uri<U>(&mut self, uri: U) -> Result<(), <U as TryInto<Uri>>::Error>where
U: TryInto<Uri>,
pub fn set_uri<U>(&mut self, uri: U) -> Result<(), <U as TryInto<Uri>>::Error>where
U: TryInto<Uri>,
Sets the URI of this request
Sourcepub fn add_extension<T>(&mut self, extension: T)
pub fn add_extension<T>(&mut self, extension: T)
Adds an extension to the request extensions
Source§impl Request
impl Request
Sourcepub fn try_clone(&self) -> Option<Request>
pub fn try_clone(&self) -> Option<Request>
Attempts to clone this request
On clone, any extensions will be cleared.
If the body is cloneable, this will clone the request. Otherwise None
will be returned
Sourcepub fn take_body(&mut self) -> SdkBody
pub fn take_body(&mut self) -> SdkBody
Replaces this request’s body with SdkBody::taken()