go/doc/next/6-stdlib/99-minor/net/http/75772.md
Damien Neil 0921e1db83 net/http: add Transport.NewClientConn
For #75772

Change-Id: Iad7607b40636bab1faf8653455e92e9700309003
Reviewed-on: https://go-review.googlesource.com/c/go/+/722223
Reviewed-by: Nicholas Husin <nsh@golang.org>
Reviewed-by: Nicholas Husin <husin@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-11-24 17:26:36 -08:00

288 B

The new [Transport.NewClientConn] method returns a client connection to an HTTP server. Most users should continue to use [Transport.RoundTrip] to make requests, which manages a pool of connection. NewClientConn is useful for users who need to implement their own conection management.