From: Brad Fitzpatrick Date: Wed, 5 Dec 2012 04:14:58 +0000 (-0800) Subject: net/http: clarify DefaultTransport docs X-Git-Tag: go1.1rc2~1717 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a7c57b05e9b51194c534d41a232739921aa2f45d;p=gostls13.git net/http: clarify DefaultTransport docs Fixes #4281 R=golang-dev, adg CC=golang-dev https://golang.org/cl/6872053 --- diff --git a/src/pkg/net/http/transport.go b/src/pkg/net/http/transport.go index 0aec1ae51b..48f7ac0e53 100644 --- a/src/pkg/net/http/transport.go +++ b/src/pkg/net/http/transport.go @@ -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