]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: update the Client docs a bit
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 19 Jan 2012 03:05:53 +0000 (19:05 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 19 Jan 2012 03:05:53 +0000 (19:05 -0800)
R=golang-dev, dsymonds, adg
CC=golang-dev
https://golang.org/cl/5557058

src/pkg/net/http/client.go

index 3d36f30e32f3f36d2f150852957c66daa11f1745..1d70672695c7ac1d717e7f119f4cd9b25c08b746 100644 (file)
@@ -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,