Skip to main content

Request

Type Alias Request 

Source
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

Aliased Type§

pub struct Request<T = IncomingBody<Request>> { /* private fields */ }

Trait Implementations§

Source§

impl FromRequest for Request

Source§

fn from_request(req: Request) -> Result<Self, ErrorCode>

Attempts to construct Self from a wasip3::http::types::Request.