Skip to content

Commit

Permalink
doc: mention the go1.7 cancellation strategy in the godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mna committed Jul 26, 2016
1 parent 0e4cdf8 commit 5ed5671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rehttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
// implement the deprecated http.Transport.CancelRequest method
// (https://golang.org/pkg/net/http/#Transport.CancelRequest).
//
// On Go1.7+, it uses the context returned by http.Request.Context
// to check for cancelled requests.
//
// It should work on Go1.5, but only if there is no timeout set on the
// *http.Client. Go's stdlib will return an error on the first request
// if that's the case, because it requires a RoundTripper that
Expand Down

0 comments on commit 5ed5671

Please sign in to comment.