package xhttputil
import "git.sr.ht/~jamesponddotco/xstd-go/xnet/xhttp/xhttputil"
Package xhttputil provides utility functions for HTTP requests and responses.
Index ¶
Functions ¶
func RedactSecret ¶
RedactSecret replaces the value of the specific header in the HTTP request or response dumps with a redacted version. This is particularly useful for ensuring sensitive information like access keys do not get logged or displayed unintentionally.
The dump parameter expects the output of httputil.DumpRequest or DumpResponse functions.
Source Files ¶
- Version
- v0.13.1 (latest)
- Published
- Jan 29, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 days ago –
Tools for package owners.