mirror of
https://github.com/golang/go
synced 2024-11-26 18:06:55 -07:00
net/http: clarify DefaultTransport docs
Fixes #4281 R=golang-dev, adg CC=golang-dev https://golang.org/cl/6872053
This commit is contained in:
parent
87b315a78f
commit
a7c57b05e9
@ -28,10 +28,10 @@ import (
|
||||
)
|
||||
|
||||
// DefaultTransport is the default implementation of Transport and is
|
||||
// used by DefaultClient. It establishes a new network connection for
|
||||
// each call to Do and uses HTTP proxies as directed by the
|
||||
// $HTTP_PROXY and $NO_PROXY (or $http_proxy and $no_proxy)
|
||||
// environment variables.
|
||||
// used by DefaultClient. It establishes network connections as needed
|
||||
// and caches them for reuse by subsequent calls. It uses HTTP proxies
|
||||
// as directed by the $HTTP_PROXY and $NO_PROXY (or $http_proxy and
|
||||
// $no_proxy) environment variables.
|
||||
var DefaultTransport RoundTripper = &Transport{Proxy: ProxyFromEnvironment}
|
||||
|
||||
// DefaultMaxIdleConnsPerHost is the default value of Transport's
|
||||
|
Loading…
Reference in New Issue
Block a user