aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-12-14 23:17:13 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-12-15 00:24:16 +0000
commitffc836bcbbd8739865cda617d21d924e03844525 (patch)
tree2dca9accd0fc1de91fcb5afe045441dbffad3f73 /src
parent49e5bdfe79cf779224e97096b592c4d45fda1184 (diff)
downloadgo-ffc836bcbbd8739865cda617d21d924e03844525.tar.xz
net/http/httptrace: clarify WroteRequest may be called multiple times
Updates #18305 Change-Id: I63b28d511df1a6c54e32c8bfc7e2264f94e38cd7 Reviewed-on: https://go-review.googlesource.com/34386 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/http/httptrace/trace.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/http/httptrace/trace.go b/src/net/http/httptrace/trace.go
index 3b7417911f..ea7b38c8fc 100644
--- a/src/net/http/httptrace/trace.go
+++ b/src/net/http/httptrace/trace.go
@@ -146,7 +146,8 @@ type ClientTrace struct {
Wait100Continue func()
// WroteRequest is called with the result of writing the
- // request and any body.
+ // request and any body. It may be called multiple times
+ // in the case of retried requests.
WroteRequest func(WroteRequestInfo)
}