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