pub struct HttpExtra {
pub via_daemon: bool,
pub daemon_session_id: Option<String>,
pub auth_principal: Option<String>,
pub request_headers: BTreeMap<String, String>,
pub response_headers: BTreeMap<String, String>,
pub request_body: Option<String>,
pub response_body: Option<String>,
pub context: BTreeMap<String, String>,
}Expand description
Optional, non-secret extras for an HTTP record. Bodies/headers are gated and
redacted centrally in record_http_with, so callers may pass them freely.
Fields§
§via_daemon: boolTrue when served inside the daemon.
daemon_session_id: Option<String>Pooled daemon session id that served the request.
auth_principal: Option<String>Non-secret identity used (never the secret).
request_headers: BTreeMap<String, String>Raw request headers (redacted + gated before writing).
response_headers: BTreeMap<String, String>Raw response headers (redacted + gated before writing).
request_body: Option<String>Request body (gated before writing).
response_body: Option<String>Response body (gated before writing).
context: BTreeMap<String, String>Free-form correlation tags.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpExtra
impl RefUnwindSafe for HttpExtra
impl Send for HttpExtra
impl Sync for HttpExtra
impl Unpin for HttpExtra
impl UnsafeUnpin for HttpExtra
impl UnwindSafe for HttpExtra
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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