Skip to content

Commit

Permalink
net/http/httptrace: refer http.Client users to the blog post
Browse files Browse the repository at this point in the history
Fixes golang#17152.

Change-Id: I4dd5e505c65f3efe736e46d3781cccf31d7f574f
Reviewed-on: https://go-review.googlesource.com/32117
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
rakyll authored and bradfitz committed Oct 28, 2016
1 parent fc2507d commit 864859d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/net/http/httptrace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ func WithClientTrace(ctx context.Context, trace *ClientTrace) context.Context {
// HTTP request. Any particular hook may be nil. Functions may be
// called concurrently from different goroutines and some may be called
// after the request has completed or failed.
//
// ClientTrace currently traces a single HTTP request & response
// during a single round trip and has no hooks that span a series
// of redirected requests.
//
// See https://blog.golang.org/http-tracing for more.
type ClientTrace struct {
// GetConn is called before a connection is created or
// retrieved from an idle pool. The hostPort is the
Expand Down

0 comments on commit 864859d

Please sign in to comment.