diff options
| author | Damien Neil <dneil@google.com> | 2024-11-04 11:21:04 -0800 |
|---|---|---|
| committer | Damien Neil <dneil@google.com> | 2024-11-21 23:48:38 +0000 |
| commit | 66abc557077c026cf21b228fe0f53afe652a4d1c (patch) | |
| tree | 6030d19f58708a69c485faf3d80f738fe6494023 /api | |
| parent | c0bccdd2fd2a26c34b30ec93e64fa1ebe704dc10 (diff) | |
| download | go-66abc557077c026cf21b228fe0f53afe652a4d1c.tar.xz | |
net/http: add support for unencrypted HTTP/2
Add an UnencryptedHTTP2 protocol value.
Both Server and Transport implement "HTTP/2 with prior knowledge"
as described in RFC 9113, section 3.3. Neither supports the
deprecated HTTP/2 upgrade mechanism (RFC 7540, section 3.2 "h2c").
For Server, UnencryptedHTTP2 controls whether the server
will accept HTTP/2 connections on unencrypted ports.
When enabled, the server checks new connections for
the HTTP/2 preface and routes them appropriately.
For Transport, enabling UnencryptedHTTP2 and disabling HTTP1
causes http:// requests to be made over unencrypted HTTP/2
connections.
For #67816
Change-Id: I2763c4cdec1c2bc6bb8157edb93b94377de8a59b
Reviewed-on: https://go-review.googlesource.com/c/go/+/622976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'api')
| -rw-r--r-- | api/next/67816.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/next/67816.txt b/api/next/67816.txt new file mode 100644 index 0000000000..91187448bc --- /dev/null +++ b/api/next/67816.txt @@ -0,0 +1,2 @@ +pkg net/http, method (*Protocols) SetUnencryptedHTTP2(bool) #67816 +pkg net/http, method (Protocols) UnencryptedHTTP2() bool #67816 |
