Expand description
Shared HTTP utilities for client and server middleware.
This module provides common functionality used by both client-side and server-side HTTP middleware, ensuring consistent behavior and avoiding code duplication.
Functionsยง
- default_
loggable_ content_ types - Get default content types that are safe to log.
- default_
sensitive_ headers - Get default sensitive headers to redact.
- format_
headers_ for_ logging - Format headers for logging with redaction.
- redact_
header_ value - Redact sensitive header values.
- redact_
url_ query - Redact query parameters from a URL.
- should_
log_ body_ for_ content_ type - Check if a content-type should allow body logging.