pub struct HttpTransaction {
pub five_tuple: FiveTuple,
pub data: Http,
}Expand description
A parsed HTTP transaction and connection metadata.
Fields§
§five_tuple: FiveTuple§data: HttpImplementations§
Source§impl HttpTransaction
impl HttpTransaction
Sourcepub fn client(&self) -> SocketAddr
pub fn client(&self) -> SocketAddr
Returns the client’s socket address.
Sourcepub fn server(&self) -> SocketAddr
pub fn server(&self) -> SocketAddr
Returns the server’s socket address.
Trait Implementations§
Source§impl Debug for HttpTransaction
impl Debug for HttpTransaction
Source§impl Serialize for HttpTransaction
impl Serialize for HttpTransaction
Source§impl Subscribable for HttpTransaction
impl Subscribable for HttpTransaction
type Tracked = TrackedHttp
Source§fn parsers() -> Vec<ConnParser>
fn parsers() -> Vec<ConnParser>
Returns a list of protocol parsers required to parse the subscribable type.
Source§fn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)
fn process_packet( mbuf: Mbuf, subscription: &Subscription<'_, Self>, conn_tracker: &mut ConnTracker<Self::Tracked>, )
Process a single incoming packet.
Auto Trait Implementations§
impl Freeze for HttpTransaction
impl RefUnwindSafe for HttpTransaction
impl Send for HttpTransaction
impl Sync for HttpTransaction
impl Unpin for HttpTransaction
impl UnsafeUnpin for HttpTransaction
impl UnwindSafe for HttpTransaction
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more