Expand description
The user’s own proxy, which the cant’s proxy chains through after its own checks: an HTTP
proxy (CONNECT, optionally with Basic credentials) or a SOCKS5 proxy (RFC 1928, optionally
with a user name and password, RFC 1929), and the user’s NO_PROXY, whose hosts are dialled
directly instead. Credentials never appear in Debug, Display, log lines or errors.
Structs§
- Auth
- A user name and password for the upstream.
Debugshows the user only. - NoProxy
- The user’s
NO_PROXY: targets matching it are dialled directly (with every check), not through the upstream. Matching follows Go’sgolang.org/x/net/http/httpproxy(which curl shares in the essentials):*matches everything;namematches the name and the names under it,.nameonly those under it; an IP matches that address,a.b.c.d/na range (a name target is never resolved to match an IP entry);:portlimits an entry to that port. - Upstream
- An upstream proxy to chain through (the user’s own
HTTPS_PROXYorALL_PROXY).
Enums§
- Kind
- How to talk to the upstream proxy.
Functions§
- redact
urlwith any password replaced by***, for messages about a proxy URL.