[][src]Struct lieweb::Request

pub struct Request { /* fields omitted */ }

Implementations

impl Request[src]

pub fn get_request_id(&self) -> Option<&str>[src]

impl Request[src]

pub fn inner(&self) -> &HyperRequest[src]

pub fn innner_mut(&mut self) -> &mut HyperRequest[src]

pub fn headers(&self) -> &HeaderMap<HeaderValue>[src]

pub fn headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>[src]

pub fn method(&self) -> &Method[src]

pub fn uri(&self) -> &Uri[src]

pub fn path(&self) -> &str[src]

pub fn version(&self) -> Version[src]

pub fn remote_addr(&self) -> SocketAddr[src]

pub fn params(&self) -> &Params[src]

pub fn get_state<T>(&self) -> Result<&T, Error> where
    T: Send + Sync + 'static + Clone
[src]

pub fn get_extension<T>(&self) -> Option<&T> where
    T: Send + Sync + 'static + Clone
[src]

pub fn get_extension_mut<T>(&mut self) -> Option<&mut T> where
    T: Send + Sync + 'static + Clone
[src]

pub fn insert_extension<T>(&mut self, val: T) where
    T: Send + Sync + 'static + Clone
[src]

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

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

pub fn get_query<T: DeserializeOwned + Default>(&self) -> Result<T, Error>[src]

pub async fn read_body<'_>(&'_ mut self) -> Result<Bytes, Error>[src]

pub async fn read_form<T: DeserializeOwned, '_>(
    &'_ mut self
) -> Result<T, Error>
[src]

pub async fn read_json<T: DeserializeOwned, '_>(
    &'_ mut self
) -> Result<T, Error>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl !UnwindSafe for Request

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,