aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/server.go
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2024-06-04 11:06:44 -0700
committerDamien Neil <dneil@google.com>2024-08-29 17:38:46 +0000
commitf84dea3a01ea86a8d51cd55318e9ec9b1724b24f (patch)
tree3e207d9ee4c70eba94f7b8d4f05d7f2bfac02158 /src/net/http/server.go
parent4f852b9734249c063928b34a02dd689e03a8ab2c (diff)
downloadgo-f84dea3a01ea86a8d51cd55318e9ec9b1724b24f.tar.xz
net/http: add HTTP2Config
Add a field to Server and Transport containing HTTP/2 configuration parameters. This field will have no effect until golang.org/x/net/http2 is updated to make use of it, and h2_bundle.go is updated with the new http2 package. For #67813 Change-Id: I81d7f8e9ddea78f9666383983aec43e3884c13ed Reviewed-on: https://go-review.googlesource.com/c/go/+/602175 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'src/net/http/server.go')
-rw-r--r--src/net/http/server.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go
index 9cbc0c8186..371c660145 100644
--- a/src/net/http/server.go
+++ b/src/net/http/server.go
@@ -2973,6 +2973,12 @@ type Server struct {
// value.
ConnContext func(ctx context.Context, c net.Conn) context.Context
+ // HTTP2 configures HTTP/2 connections.
+ //
+ // This field does not yet have any effect.
+ // See https://go.dev/issue/67813.
+ HTTP2 *HTTP2Config
+
inShutdown atomic.Bool // true when server is in shutdown
disableKeepAlives atomic.Bool