Skip to main content

Module upstream

Module upstream 

Source
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. Debug shows 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’s golang.org/x/net/http/httpproxy (which curl shares in the essentials): * matches everything; name matches the name and the names under it, .name only those under it; an IP matches that address, a.b.c.d/n a range (a name target is never resolved to match an IP entry); :port limits an entry to that port.
Upstream
An upstream proxy to chain through (the user’s own HTTPS_PROXY or ALL_PROXY).

Enums§

Kind
How to talk to the upstream proxy.

Functions§

redact
url with any password replaced by ***, for messages about a proxy URL.