Request

Type Alias Request 

Source
pub type Request<B = Body> = Request<B>;
Expand description

Request with Body as default body.

Aliased Type§

pub struct Request<B = Body> { /* private fields */ }

Trait Implementations§

Source§

impl<B> FromRequest<B> for Request<B>
where B: Send,

Available on crate feature server only.
Source§

type Rejection = Infallible

If the extractor fails, it will return this Rejection type. Read more
Source§

async fn from_request( _cx: &mut ServerContext, parts: Parts, body: B, ) -> Result<Self, Self::Rejection>

Extract the type from request.