Skip to main content

Module redact

Module redact 

Source

Constants§

REDACTED

Functions§

redact_body
Redact and truncate a request/response body for safe single-line display. JSON bodies have sensitive keys recursively replaced; newlines/tabs are collapsed to spaces so snippets stay on one line. max bounds the char count.
redact_header_value
redact_query_value
redact_url
Rebuild a URL with opaque path segments and sensitive/opaque query values redacted. unsafe_include returns the raw URL. Falls back to redact_value on parse failure.
redact_value
Redact secret-bearing chunks from a free-form value: split on common delimiters and replace any opaque chunk with the redaction marker.