pub struct HttpDetector;Expand description
HTTP protocol detector.
Checks if the input starts with a known HTTP method or “HTTP/”.
Trait Implementations§
Source§impl ProtocolDetector for HttpDetector
impl ProtocolDetector for HttpDetector
Source§fn id(&self) -> ProtocolId
fn id(&self) -> ProtocolId
Returns the unique identifier for the protocol this detector handles.
Auto Trait Implementations§
impl Freeze for HttpDetector
impl RefUnwindSafe for HttpDetector
impl Send for HttpDetector
impl Sync for HttpDetector
impl Unpin for HttpDetector
impl UnsafeUnpin for HttpDetector
impl UnwindSafe for HttpDetector
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