xhttputil

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 3 Imported by: 1

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

func RedactSecret(dump []byte, header string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL