Documentation
¶
Index ¶
- func CookiesFromHeader(header http.Header) []*http.Cookie
- func ParseCookieHeader(header string) *http.Cookie
- func PrintCookies(client *http.Client, urlString string, log logger.Logger)
- func RedactSensitiveCookies(cookies []*http.Cookie) []*http.Cookie
- func SetupCookieJar(client *http.Client, enableCookieJar bool, log logger.Logger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CookiesFromHeader ¶
Utility function to convert cookies from http.Header to []*http.Cookie. This can be useful if cookies are stored in http.Header (e.g., from a response).
func ParseCookieHeader ¶
ParseCookieHeader parses a single Set-Cookie header and returns an *http.Cookie.
func PrintCookies ¶ added in v0.1.2
PrintCookies prints the cookies stored in the HTTP client's cookie jar for a given URL.
func RedactSensitiveCookies ¶
RedactSensitiveCookies redacts sensitive information from cookies. It takes a slice of *http.Cookie and returns a redacted slice of *http.Cookie.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.