pub type Request<T = IncomingBody<Request>> = Request<T>;Expand description
A type alias for an HTTP request with a customizable body type.
This is a convenience wrapper around http::Request, parameterized
by the body type T. By default, it uses IncomingRequestBody,
which represents the standard incoming body used by this runtime.
§See also
IncomingRequestBody: The body type for inbound HTTP requests.http::Request: The standard HTTP request type from thehttpcrate.
Aliased Type§
pub struct Request<T = IncomingBody<Request>> { /* private fields */ }Trait Implementations§
Source§impl FromRequest for Request
impl FromRequest for Request
Source§fn from_request(req: Request) -> Result<Self, ErrorCode>
fn from_request(req: Request) -> Result<Self, ErrorCode>
Attempts to construct
Self from a wasip3::http::types::Request.