[−][src]Struct dumb_http_parser::HttpParser
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_cookie(&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_cookie(&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 get_cookie_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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,