Skip to main content

Module http

Module http 

Source
Expand description

Immutable HTTP redaction policy, bounded body input, and safe results.

Re-exports§

pub use crate::DiagnosticBudgetError;
pub use crate::InputOutputLimit;
pub use crate::JsonDepthBudget;
pub use crate::JsonDepthBudgetError;

Structs§

BodyBudget
Bounds both inspected body bytes and produced log-safe bytes.
BodyCapture
Borrowed HTTP body bytes with truthful source-length metadata.
BodyRedaction
Holds only escaped, bounded body text plus read-only source metadata.
HttpPolicy
Combines HTTP field rules, behavior choices, and resource limits.
HttpRedactor
Applies one immutable HTTP policy to URLs, forms, headers, and bodies.
RedactedHeaders
Owns a deterministic log-safe rendering of an HTTP header map.

Enums§

BodyBudgetError
Reports which hard body-budget invariant was violated.
BodyCaptureError
Reports inconsistent source-length metadata for a body capture.
BodyRedactionReason
Identifies why an HTTP body could not be represented structurally.
BodyRedactionStatus
Describes how an HTTP body was represented for diagnostics.
TextBodyPolicy
Controls whether opaque HTTP text is redacted or rendered unchanged.
UnkeyedJsonValuePolicy
Controls whether unkeyed JSON scalar values are redacted or preserved.
UrlPathPolicy
Controls whether complete URL paths remain visible after redaction.