pub struct HTTPParser { /* private fields */ }Expand description
HTTP Parser Analyzer that parses SSL traffic into HTTP requests/responses
Implementations§
Source§impl HTTPParser
impl HTTPParser
Sourcepub fn new() -> HTTPParser
pub fn new() -> HTTPParser
Create a new HTTPParser with default settings (raw data included)
Sourcepub fn disable_raw_data(self) -> HTTPParser
pub fn disable_raw_data(self) -> HTTPParser
Disable raw data inclusion
Sourcepub fn is_http_data(data: &str) -> bool
pub fn is_http_data(data: &str) -> bool
Check if SSL data contains HTTP protocol data
Sourcepub fn parse_http_message(data: &str) -> Option<HTTPMessage>
pub fn parse_http_message(data: &str) -> Option<HTTPMessage>
Parse HTTP message from accumulated data
Trait Implementations§
Source§impl Analyzer for HTTPParser
impl Analyzer for HTTPParser
fn process<'life0, 'async_trait>(
&'life0 mut self,
stream: Pin<Box<dyn Stream<Item = Event> + Send>>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Event> + Send>>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
'life0: 'async_trait,
HTTPParser: 'async_trait,
Source§impl Default for HTTPParser
impl Default for HTTPParser
Source§fn default() -> HTTPParser
fn default() -> HTTPParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HTTPParser
impl RefUnwindSafe for HTTPParser
impl Send for HTTPParser
impl Sync for HTTPParser
impl Unpin for HTTPParser
impl UnsafeUnpin for HTTPParser
impl UnwindSafe for HTTPParser
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