[][src]Struct async_httype::Request

pub struct Request { /* fields omitted */ }

Implementations

impl Request[src]

pub fn new() -> Self[src]

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

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

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

pub fn headers(&self) -> &HashMap<String, String>[src]

pub fn header<N: Into<String>>(&self, name: N) -> Option<&String>[src]

pub fn length(&self) -> usize[src]

pub fn length_limit(&self) -> Option<usize>[src]

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

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

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

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

pub fn has_header<N: Into<String>>(&self, name: N) -> bool[src]

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

pub fn set_method<V: Into<String>>(&mut self, value: V)[src]

pub fn set_uri<V: Into<String>>(&mut self, value: V)[src]

pub fn set_version<V: Into<String>>(&mut self, value: V)[src]

pub fn set_header<N: Into<String>, V: Into<String>>(
    &mut self,
    name: N,
    value: V
)
[src]

pub fn set_length_limit(&mut self, limit: usize)[src]

pub fn remove_method(&mut self)[src]

pub fn remove_uri(&mut self)[src]

pub fn remove_version<V: Into<String>>(&mut self)[src]

pub fn remove_header<N: Into<String>>(&mut self, name: N)[src]

pub fn remove_length_limit(&mut self)[src]

pub async fn read_stream<'_, '_, I>(
    &'_ mut self,
    stream: &'_ mut I
) -> Result<usize, Error> where
    I: Read + Unpin
[src]

pub async fn read_string<'_, V: Into<String>>(
    &'_ mut self,
    value: V
) -> Result<(), Error>
[src]

pub fn clear(&mut self)[src]

pub fn parse_head(&mut self) -> Result<(), Error>[src]

pub fn parse_headers(&mut self) -> Result<(), Error>[src]

pub fn build_head(&mut self) -> Result<(), Error>[src]

pub fn build_headers(&mut self) -> Result<(), Error>[src]

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

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

Trait Implementations

impl Debug for Request[src]

impl Display for Request[src]

impl From<Request> for String[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> 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.