package httpproxy
Import Path
vendor/golang.org/x/net/http/httpproxy (on golang.org and go.dev)
Dependency Relation
imports 8 packages, and imported by one package
Involved Source Files
d-> proxy.go
Exported Type Names
type Config (struct)
Config holds configuration for HTTP proxy settings. See
FromEnvironment for details.
CGI bool
HTTPProxy string
HTTPSProxy string
NoProxy string
(*T) ProxyFunc() func(reqURL *url.URL) (*url.URL, error)
func FromEnvironment() *Config
Exported Values
func FromEnvironment() *Config
FromEnvironment returns a Config instance populated from the
environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the
lowercase versions thereof). HTTPS_PROXY takes precedence over
HTTP_PROXY for https requests.
The environment values may be either a complete URL or a
"host[:port]", in which case the "http" scheme is assumed. An error
is returned if the value is a different form.
![]() |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |