From bfc8f28068c4aff44aded67aef12e56ecc843717 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Wed, 29 May 2024 09:24:20 -0700 Subject: 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 Reviewed-by: Jonathan Amsterdam Reviewed-by: Brad Fitzpatrick --- api/next/67814.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 api/next/67814.txt (limited to 'api/next') diff --git a/api/next/67814.txt b/api/next/67814.txt new file mode 100644 index 0000000000..05f539116f --- /dev/null +++ b/api/next/67814.txt @@ -0,0 +1,8 @@ +pkg net/http, method (*Protocols) SetHTTP1(bool) #67814 +pkg net/http, method (*Protocols) SetHTTP2(bool) #67814 +pkg net/http, method (Protocols) String() string #67814 +pkg net/http, method (Protocols) HTTP1() bool #67814 +pkg net/http, method (Protocols) HTTP2() bool #67814 +pkg net/http, type Protocols struct #67814 +pkg net/http, type Server struct, Protocols *Protocols #67814 +pkg net/http, type Transport struct, Protocols *Protocols #67814 -- cgit v1.3-6-g1900