]> Cypherpunks repositories - gostls13.git/commit
net/http: add Protocols field to Server and Transport
authorDamien Neil <dneil@google.com>
Wed, 29 May 2024 16:24:20 +0000 (09:24 -0700)
committerDamien Neil <dneil@google.com>
Tue, 5 Nov 2024 22:14:59 +0000 (22:14 +0000)
commitbfc8f28068c4aff44aded67aef12e56ecc843717
treed689a3e8af0036e9276aa45c5193df8f1349d6f3
parent635c2dce04259f2c84aeac543f0305b3e7c8ed7b
net/http: add Protocols field to Server and Transport

Support configuring which HTTP version(s) a server or client use
via an explicit set of protocols. The Protocols field takes
precedence over TLSNextProto and ForceAttemptHTTP2.

Fixes #67814

Change-Id: I09ece88f78ad4d98ca1f213157b5f62ae11e063f
Reviewed-on: https://go-review.googlesource.com/c/go/+/607496
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
api/next/67814.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/net/http/67814.md [new file with mode: 0644]
src/net/http/example_test.go
src/net/http/http.go
src/net/http/http_test.go
src/net/http/server.go
src/net/http/transport.go
src/net/http/transport_test.go