package
Version:
v0.12.3
Opens a new window with list of versions in this module.
Published: Nov 9, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package httpauth enforces credential transport rules for outbound API requests.
type Policy struct{ AllowInsecure bool }
Policy controls whether credentials may be sent over plaintext HTTP.
The default permits HTTPS and loopback HTTP, and rejects HTTPS downgrades.
Do applies Basic authentication and enforces the policy on requests and redirects.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.