aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2012-01-18 19:05:53 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2012-01-18 19:05:53 -0800
commitf44304ee634ce8f97a0000b72dafba4fdbdf46b1 (patch)
treeb920a01899a31ad8d92fbf0ccc66ee2eba82af9b
parent7d418aeed2f93014d2717da36dd08376e3fe2bf9 (diff)
downloadgo-f44304ee634ce8f97a0000b72dafba4fdbdf46b1.tar.gz
go-f44304ee634ce8f97a0000b72dafba4fdbdf46b1.zip
net/http: update the Client docs a bit
R=golang-dev, dsymonds, adg CC=golang-dev https://golang.org/cl/5557058
-rw-r--r--src/pkg/net/http/client.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkg/net/http/client.go b/src/pkg/net/http/client.go
index 3d36f30e32..1d70672695 100644
--- a/src/pkg/net/http/client.go
+++ b/src/pkg/net/http/client.go
@@ -24,11 +24,13 @@ import (
// The Client's Transport typically has internal state (cached
// TCP connections), so Clients should be reused instead of created as
// needed. Clients are safe for concurrent use by multiple goroutines.
-//
-// Client is not yet very configurable.
type Client struct {
- Transport RoundTripper // if nil, DefaultTransport is used
+ // Transport specifies the mechanism by which individual
+ // HTTP requests are made.
+ // If nil, DefaultTransport is used.
+ Transport RoundTripper
+ // CheckRedirect specifies the policy for handling redirects.
// If CheckRedirect is not nil, the client calls it before
// following an HTTP redirect. The arguments req and via
// are the upcoming request and the requests made already,