Expand description
Immutable HTTP redaction policy, bounded body input, and safe results.
Re-exports§
pub use crate::DiagnosticBudget;pub use crate::DiagnosticBudgetError;
Structs§
- Body
Budget - Bounds both inspected body bytes and produced log-safe bytes.
- Body
Capture - Borrowed HTTP body bytes with truthful source-length metadata.
- Body
Redaction - Holds only escaped, bounded body text plus read-only source metadata.
- Http
Redaction Policy - Combines independent HTTP field policies, behavior choices, and hard limits.
- Http
Redaction Policy Builder - Mutable construction state for an
HttpRedactionPolicy. - Http
Redactor - Applies one immutable HTTP policy to URLs, forms, headers, and bodies.
- Redacted
Headers - Owns a deterministic log-safe rendering of an HTTP header map.
Enums§
- Body
Budget Error - Reports which hard body-budget invariant was violated.
- Body
Capture Error - Reports inconsistent source-length metadata for a body capture.
- Body
Redaction Reason - Identifies why an HTTP body could not be represented structurally.
- Body
Redaction Status - Describes how an HTTP body was represented for diagnostics.
- Text
Body Policy - Controls whether opaque HTTP text is redacted or rendered unchanged.
- Unkeyed
Json Value Policy - Controls whether unkeyed JSON scalar values are redacted or preserved.
- UrlPath
Policy - Controls whether complete URL paths remain visible after redaction.