Request

Type Alias Request 

Source
pub type Request = Request<Incoming>;

Aliased Type§

pub struct Request { /* private fields */ }

Trait Implementations§

Source§

impl FromRequest for Request

Source§

type Rejection = BodyBeenTaken

Source§

fn from_request<'life0, 'async_trait>( req: &'life0 mut RequestParts, ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl LieRequest for Request

Source§

fn path(&self) -> &str

Source§

fn remote_addr(&self) -> Option<SocketAddr>

Source§

fn get_param<T>(&self, param: &str) -> Result<T, Error>
where T: FromStr, <T as FromStr>::Err: Error,

Source§

fn get_header<K>(&self, header: K) -> Result<&HeaderValue, Error>
where HeaderName: From<K>,

Source§

fn get_typed_header<T: Header + Send + 'static>(&self) -> Result<T, Error>

Source§

fn read_body<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn read_form<'life0, 'async_trait, T>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait,

Source§

fn read_json<'life0, 'async_trait, T>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait,