pub struct Exchange {
pub request: HttpRequest,
pub response: HttpResponse,
pub latency_ns: u64,
pub protocol: Protocol,
pub process_id: u32,
pub remote_port: Option<u16>,
pub stream_id: Option<StreamId>,
}Expand description
A complete request/response exchange
Fields§
§request: HttpRequestThe HTTP request
response: HttpResponseThe matched HTTP response
latency_ns: u64Time between request completion and response start, in nanoseconds
protocol: ProtocolProtocol used for this exchange
process_id: u32OS process ID that handled this connection
remote_port: Option<u16>Remote port, None if unavailable (e.g., SSL without socket fd)
stream_id: Option<StreamId>Stream ID for HTTP/2 (None for HTTP/1)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
impl UnwindSafe for Exchange
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