]> Cypherpunks repositories - gostls13.git/commit
net/http: document when request bodies are closed in more places
authorDamien Neil <dneil@google.com>
Thu, 24 Aug 2023 17:58:51 +0000 (10:58 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 25 Aug 2023 17:18:36 +0000 (17:18 +0000)
commit1a01cb22f9ab07d55ee61c95a34e1e18e49596c0
treebc96a1e495a3de955866bf29d59bf68dcd615712
parent92bbecc518533867a9bb381e261196111db2dd80
net/http: document when request bodies are closed in more places

It isn't obvious that request bodies can be closed asynchronously,
and it's easy to overlook the documentation of this fact in
RoundTripper, which is a fairly low-level interface.

Change-Id: I3b825c505418af7e1d3f6ed58f3704e55cf16901
Reviewed-on: https://go-review.googlesource.com/c/go/+/523036
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/net/http/client.go
src/net/http/request.go