pub type Request<T = Body> = Request<T>;Expand description
Type alias for http::Request whose body type defaults to Body, the most common body
type used with axum.
Aliased Type§
pub struct Request<T = Body> { /* private fields */ }Trait Implementations§
Source§impl<S> FromRequest<S> for Request
 
impl<S> FromRequest<S> for Request
Source§impl RequestExt for Request
 
impl RequestExt for Request
Source§fn extract<E, M>(self) -> impl Future<Output = Result<E, E::Rejection>> + Sendwhere
    E: FromRequest<(), M> + 'static,
    M: 'static,
 
fn extract<E, M>(self) -> impl Future<Output = Result<E, E::Rejection>> + Sendwhere
    E: FromRequest<(), M> + 'static,
    M: 'static,
Apply an extractor to this 
Request. Read moreSource§fn extract_with_state<E, S, M>(
    self,
    state: &S,
) -> impl Future<Output = Result<E, E::Rejection>> + Send
 
fn extract_with_state<E, S, M>( self, state: &S, ) -> impl Future<Output = Result<E, E::Rejection>> + Send
Apply an extractor that requires some state to this 
Request. Read moreSource§fn extract_parts<E>(
    &mut self,
) -> impl Future<Output = Result<E, E::Rejection>> + Sendwhere
    E: FromRequestParts<()> + 'static,
 
fn extract_parts<E>(
    &mut self,
) -> impl Future<Output = Result<E, E::Rejection>> + Sendwhere
    E: FromRequestParts<()> + 'static,
Apply a parts extractor to this 
Request. Read moreSource§async fn extract_parts_with_state<'a, E, S>(
    &'a mut self,
    state: &'a S,
) -> Result<E, E::Rejection>
 
async fn extract_parts_with_state<'a, E, S>( &'a mut self, state: &'a S, ) -> Result<E, E::Rejection>
Apply a parts extractor that requires some state to this 
Request. Read moreSource§fn with_limited_body(self) -> Request
 
fn with_limited_body(self) -> Request
Apply the default body limit. Read more
Source§fn into_limited_body(self) -> Body
 
fn into_limited_body(self) -> Body
Consumes the request, returning the body wrapped in 
http_body_util::Limited if a
default limit is in place, or not wrapped if the
default limit is disabled.