From a7c57b05e9b51194c534d41a232739921aa2f45d Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 4 Dec 2012 20:14:58 -0800 Subject: [PATCH] net/http: clarify DefaultTransport docs Fixes #4281 R=golang-dev, adg CC=golang-dev https://golang.org/cl/6872053 --- src/pkg/net/http/transport.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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