pub struct HttpDissector;Expand description
HTTP/1.1 dissector.
Parses both request and response messages. The dissector detects whether the
message is a request or response by checking if the start-line begins with
"HTTP/" (response) or a method token (request).
Trait Implementations§
Source§impl Dissector for HttpDissector
impl Dissector for HttpDissector
Source§fn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Short protocol name (e.g., “IPv4”). Read more
Source§fn field_descriptors(&self) -> &'static [FieldDescriptor]
fn field_descriptors(&self) -> &'static [FieldDescriptor]
Returns metadata describing all fields this dissector can produce. Read more
Source§fn dissect<'pkt>(
&self,
data: &'pkt [u8],
buf: &mut DissectBuffer<'pkt>,
offset: usize,
) -> Result<DissectResult, PacketError>
fn dissect<'pkt>( &self, data: &'pkt [u8], buf: &mut DissectBuffer<'pkt>, offset: usize, ) -> Result<DissectResult, PacketError>
Dissect the given bytes and append a protocol layer to the buffer. Read more
Auto Trait Implementations§
impl Freeze for HttpDissector
impl RefUnwindSafe for HttpDissector
impl Send for HttpDissector
impl Sync for HttpDissector
impl Unpin for HttpDissector
impl UnsafeUnpin for HttpDissector
impl UnwindSafe for HttpDissector
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