[][src]Struct dumb_http_parser::HttpParser

pub struct HttpParser<'a> { /* fields omitted */ }

Methods

impl<'a> HttpParser<'a>[src]

pub fn new(buf: &'a [u8]) -> HttpParser<'a>[src]

pub fn parse(&mut self)[src]

pub fn set_method(&mut self, method: HttpMethod)[src]

pub fn set_src(&mut self, method: [usize; 2])[src]

pub fn set_content_length(&mut self, method: [usize; 2])[src]

pub fn set_content_type(&mut self, method: [usize; 2])[src]

pub fn set_body(&mut self, method: [usize; 2])[src]

pub fn get_method(&self) -> &HttpMethod[src]

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

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

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

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

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

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

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

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

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

pub fn get_map(&self, nature: &str, splitter: &str) -> HashMap<&str, &str>[src]

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

pub fn get_body_map(&self) -> HashMap<&str, &str>[src]

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

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

pub fn check_data(buf: &[u8]) -> usize[src]

Trait Implementations

impl<'a> Debug for HttpParser<'a>[src]

Auto Trait Implementations

impl<'a> Send for HttpParser<'a>

impl<'a> Sync for HttpParser<'a>

Blanket Implementations

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

impl<T> From<T> for 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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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