pub struct HttpParser<'a> { /* private fields */ }Implementations§
Source§impl<'a> HttpParser<'a>
impl<'a> HttpParser<'a>
pub fn new(buf: &'a [u8]) -> HttpParser<'a>
pub fn parse(&mut self)
pub fn set_method(&mut self, method: HttpMethod)
pub fn set_src(&mut self, method: [usize; 2])
pub fn set_content_length(&mut self, method: [usize; 2])
pub fn set_content_type(&mut self, method: [usize; 2])
pub fn set_body(&mut self, method: [usize; 2])
pub fn get_method(&self) -> &HttpMethod
pub fn get_content_length(&self) -> usize
pub fn get_content_type(&self) -> &str
pub fn get_charset(&self) -> &str
pub fn get_multipart_boundary(&self) -> &str
pub fn get_src(&self) -> &str
pub fn get_body(&self) -> &str
pub fn get_page(&self) -> &str
pub fn get_params(&self) -> &str
pub fn get_params_index(&self) -> (usize, usize)
pub fn get_map(&self, nature: &str, splitter: &str) -> HashMap<&str, &str>
pub fn get_post_params<'b>(&self) -> HashMap<String, String>where
'a: 'b,
pub fn get_post_params_url_encoded(&self) -> HashMap<String, String>
pub fn get_params_map(&self) -> HashMap<String, String>
pub fn get_body_map(&self) -> HashMap<String, String>
pub fn is_body_read(&self) -> bool
pub fn get_body_remain(&self) -> usize
pub fn check_data(buf: &[u8]) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HttpParser<'a>
impl<'a> RefUnwindSafe for HttpParser<'a>
impl<'a> Send for HttpParser<'a>
impl<'a> Sync for HttpParser<'a>
impl<'a> Unpin for HttpParser<'a>
impl<'a> UnwindSafe for HttpParser<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more