tshttpproxy
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package tshttpproxy contains Tailscale additions to httpproxy not availablein golang.org/x/net/http/httpproxy. Notably, it aims to support Windows better.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcGetAuthHeader¶
GetAuthHeader returns the Authorization header value to send to proxy u.
funcInvalidateCache¶
func InvalidateCache()
InvalidateCache invalidates the package-level cache for ProxyFromEnvironment.
It's intended to be called on network link/routing table changes.
funcProxyFromEnvironment¶
ProxyFromEnvironment is like the standard library's http.ProxyFromEnvironmentbut additionally does OS-specific proxy lookups if the environment variablesalone don't specify a proxy.
funcSetProxyFunc¶added inv1.88.0
SetProxyFunc can be used by clients to set a platform-specific function for proxy resolution.If config is set when this function is called, an error will be returned.The provided function should return a proxy URL for the given request URL,nil if no proxy is enabled for the request URL, or an error if proxy settings cannot be resolved.
funcSetSelfProxy¶added inv1.40.0
func SetSelfProxy(addrs ...string)
SetSelfProxy configures this package to avoid proxying through any of theprovided addresses–e.g. if they refer to proxies being run by this process.
funcSetTransportGetProxyConnectHeader¶
SetTransportGetProxyConnectHeader sets the provided Transport'sGetProxyConnectHeader field, and adds logging of the received response.
Types¶
This section is empty.