package httpproxy

Import Path
	vendor/ (on and

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.