pub struct HttpProcessors { /* private fields */ }
Expand description
HTTP parser that automatically detects and processes different HTTP versions
Implementations§
Source§impl HttpProcessors
impl HttpProcessors
pub fn new() -> Self
Sourcepub fn parse_request(&self, data: &[u8]) -> Option<ObservableHttpRequest>
pub fn parse_request(&self, data: &[u8]) -> Option<ObservableHttpRequest>
Parse HTTP request data using the appropriate parser
Sourcepub fn parse_response(&self, data: &[u8]) -> Option<ObservableHttpResponse>
pub fn parse_response(&self, data: &[u8]) -> Option<ObservableHttpResponse>
Parse HTTP response data using the appropriate parser
Sourcepub fn supported_versions(&self) -> Vec<Version>
pub fn supported_versions(&self) -> Vec<Version>
Get all supported HTTP versions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpProcessors
impl !RefUnwindSafe for HttpProcessors
impl !Send for HttpProcessors
impl !Sync for HttpProcessors
impl Unpin for HttpProcessors
impl !UnwindSafe for HttpProcessors
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