]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httptrace: clarify WroteRequest may be called multiple times
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Dec 2016 23:17:13 +0000 (23:17 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 15 Dec 2016 00:24:16 +0000 (00:24 +0000)
Updates #18305

Change-Id: I63b28d511df1a6c54e32c8bfc7e2264f94e38cd7
Reviewed-on: https://go-review.googlesource.com/34386
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/httptrace/trace.go

index 3b7417911fa6cf28ec9b2688818d130483c34007..ea7b38c8fc6e0be959e65aa7e2f1648774cb16da 100644 (file)
@@ -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)
 }