Struct rok::request::request::Request[][src]

pub struct Request { /* fields omitted */ }

Implementations

impl Request[src]

pub fn new(request: HyperRequest, remote_address: Option<SocketAddr>) -> Self[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) -> Option<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_typed_header<T: Header + Send + 'static>(&self) -> Result<T, Error>[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]

Trait Implementations

impl From<Request<Body>> for Request[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,