1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:24:40 -07:00

net/http: update the Client docs a bit

R=golang-dev, dsymonds, adg
CC=golang-dev
https://golang.org/cl/5557058
This commit is contained in:
Brad Fitzpatrick 2012-01-18 19:05:53 -08:00
parent 7d418aeed2
commit f44304ee63

View File

@ -24,11 +24,13 @@ import (
// The Client's Transport typically has internal state (cached // The Client's Transport typically has internal state (cached
// TCP connections), so Clients should be reused instead of created as // TCP connections), so Clients should be reused instead of created as
// needed. Clients are safe for concurrent use by multiple goroutines. // needed. Clients are safe for concurrent use by multiple goroutines.
//
// Client is not yet very configurable.
type Client struct { 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 // If CheckRedirect is not nil, the client calls it before
// following an HTTP redirect. The arguments req and via // following an HTTP redirect. The arguments req and via
// are the upcoming request and the requests made already, // are the upcoming request and the requests made already,