pub struct Http2Processor { /* private fields */ }
Expand description
HTTP/2 Protocol Processor
Implements the HttpProcessor trait for HTTP/2 protocol. Handles both request and response processing with proper protocol detection. Contains a parser instance that is created once and reused.
Implementations§
Trait Implementations§
Source§impl Default for Http2Processor
impl Default for Http2Processor
Source§impl HttpProcessor for Http2Processor
impl HttpProcessor for Http2Processor
Source§fn can_process_request(&self, data: &[u8]) -> bool
fn can_process_request(&self, data: &[u8]) -> bool
Check if this processor can handle the given request data
Source§fn can_process_response(&self, data: &[u8]) -> bool
fn can_process_response(&self, data: &[u8]) -> bool
Check if this processor can handle the given response data
Source§fn has_complete_data(&self, data: &[u8]) -> bool
fn has_complete_data(&self, data: &[u8]) -> bool
Check if the data appears to be complete for this protocol
Source§fn process_request(
&self,
data: &[u8],
) -> Result<Option<ObservableHttpRequest>, HuginnNetError>
fn process_request( &self, data: &[u8], ) -> Result<Option<ObservableHttpRequest>, HuginnNetError>
Process HTTP request data and return observable request
Source§fn process_response(
&self,
data: &[u8],
) -> Result<Option<ObservableHttpResponse>, HuginnNetError>
fn process_response( &self, data: &[u8], ) -> Result<Option<ObservableHttpResponse>, HuginnNetError>
Process HTTP response data and return observable response
Source§fn supported_version(&self) -> Version
fn supported_version(&self) -> Version
Get the HTTP version this processor handles
Auto Trait Implementations§
impl !Freeze for Http2Processor
impl !RefUnwindSafe for Http2Processor
impl Send for Http2Processor
impl !Sync for Http2Processor
impl Unpin for Http2Processor
impl UnwindSafe for Http2Processor
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