Documentation ¶
Overview ¶
Package xhttputil provides utility functions for HTTP requests and responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.