[][src]Struct mini_async_http::Request

pub struct Request { /* fields omitted */ }

Represent an http request.

Implementations

impl Request[src]

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

Return the request Method

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

Return the target path of the request

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

Return the HTTP version of the request

pub fn headers(&self) -> &Headers[src]

Return the headers of the request

pub fn body(&self) -> Option<&Vec<u8>>[src]

Return the body of the request as byte vector

pub fn body_as_string(&self) -> Option<String>[src]

Return the body of the request interpreted as utf 8 string

Trait Implementations

impl Debug for Request[src]

impl Display for Request[src]

impl PartialEq<Request> for Request[src]

impl StructuralPartialEq for Request[src]

impl<'_> TryFrom<&'_ [u8]> for Request[src]

type Error = ParseError

The type returned in the event of a conversion error.

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> ToString for T where
    T: Display + ?Sized
[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.