Struct rhodium::request::RhodRequest[][src]

pub struct RhodRequest { /* fields omitted */ }

Implementations

impl RhodRequest[src]

pub fn new(req: HyperRequest<HyperBody>) -> RhodRequest[src]

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

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

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

pub fn is_post(&self) -> bool[src]

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

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

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

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

pub async fn body(&mut self) -> RhodResult<Vec<u8>>[src]

pub fn body_processor(&self) -> Option<BodyProcessor>[src]

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

pub fn version_string(&self) -> String[src]

pub fn request_line(&self) -> String[src]

pub fn into_hyper_request(self) -> HyperRequest<HyperBody>[src]

Trait Implementations

impl Debug for RhodRequest[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, 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.