Change information
Commit message:
net/http: add basic unexported pluggable HTTP/3 support
Following #77440, this CL adds a basic support for plugging in an HTTP/3
implementation to net/http. As the proposal is not accepted yet, this CL
does not add any exported symbols.
Access to plug HTTP/3 support is locked behind
net/http.protocolSetHTTP3, which can only be used via linkname by
golang.org/x/net/internal/http3_test.protocolSetHTTP3. This will allow
us to run our HTTP/3 implementation in x/net againts various tests in
net/http to support development, without expanding the API surface for
any users.
Support for closeIdleConnectionser will be added separately in the
future.
For #77440
Change-Id: I6e3a0c2e9b329cef43e4682463ed5e2093d04256
Files:
- M src/net/http/http.go
- M src/net/http/server.go
- M src/net/http/transport.go
Change size: M
Delta: 3 files changed, 178 insertions(+), 15 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Damien Neil, +1 by Nicholas Husin
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI