pub struct ProxyResponseMetadataObservation { /* private fields */ }Expand description
Trusted, sensitive metadata from one validated response head.
Observations contain no dedicated request-target, query, request-header,
response-body, or request-body fields. Allowlisted metadata values may
themselves contain request details and must be treated as sensitive. They
are redacted from Debug output.
Implementations§
Source§impl ProxyResponseMetadataObservation
impl ProxyResponseMetadataObservation
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Returns the proxy generation that produced this response.
Sourcepub fn host(&self) -> &ObservedHost
pub fn host(&self) -> &ObservedHost
Returns the validated canonical HNS host, without a port or user info.
Sourcepub fn method(&self) -> ObservedMethod
pub fn method(&self) -> ObservedMethod
Returns the request method as a closed, payload-free classification.
Sourcepub fn status_code(&self) -> u16
pub fn status_code(&self) -> u16
Returns the validated response status selected for browser delivery. Observation precedes the socket write, so client disconnects can still prevent the browser from receiving it.
Sourcepub fn is_likely_main_frame(&self) -> bool
pub fn is_likely_main_frame(&self) -> bool
Whether the request matched the browser shell’s conservative main-frame-navigation heuristic.
Sourcepub fn observation_id(&self) -> Option<u64>
pub fn observation_id(&self) -> Option<u64>
Opaque backend-local typed-status correlation. This value is never serialized to the browser or native-messaging protocol.
pub const fn kind(&self) -> ProxyMetadataObservationKind
pub const fn port(&self) -> Option<u16>
pub const fn correlation_epoch(&self) -> Option<u64>
Sourcepub fn metadata(&self) -> &InternalResponseMetadata
pub fn metadata(&self) -> &InternalResponseMetadata
Returns allowlisted internal metadata removed from the browser-facing response head.