pub struct CachedParser { /* private fields */ }Expand description
RAII wrapper that returns parser to cache on drop
Implementations§
Source§impl CachedParser
impl CachedParser
Sourcepub fn parse_response(
&mut self,
buffer: &[u8],
) -> Result<(u16, Vec<(String, String)>), Error>
pub fn parse_response( &mut self, buffer: &[u8], ) -> Result<(u16, Vec<(String, String)>), Error>
Parse HTTP response
Sourcepub fn parse_request(&mut self, buffer: &[u8]) -> HttpParseResult
pub fn parse_request(&mut self, buffer: &[u8]) -> HttpParseResult
Parse HTTP request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CachedParser
impl !RefUnwindSafe for CachedParser
impl Send for CachedParser
impl Sync for CachedParser
impl Unpin for CachedParser
impl UnsafeUnpin for CachedParser
impl !UnwindSafe for CachedParser
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