]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: fix and lock-in Client.Do docs on request cancelation
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Sat, 12 Oct 2019 00:27:33 +0000 (20:27 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 14 Oct 2019 20:50:54 +0000 (20:50 +0000)
commit19e0799ba049bf26e770d150d4c296f247e1de5c
treebdb5b31b4e69497c42d029c0c3040fd8913f994d
parentb649bdc7f3c99c5288c91a1ce148efadd86e19a4
net/http: fix and lock-in Client.Do docs on request cancelation

Fixes the docs to correctly match the implementation
and also adds a test locking-in the behavior to prevent
any accidental future regressions on the docs.

Fixes #33545

Change-Id: I6fdac6048cce8ac99beaa2db0dfc81d0dccc10f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/200798
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/client.go
src/net/http/client_test.go