aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/transport_test.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/transport_test.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/transport_test.go')
-rw-r--r--src/net/http/transport_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/transport_test.go b/src/net/http/transport_test.go
index 2389284249..3c353ed253 100644
--- a/src/net/http/transport_test.go
+++ b/src/net/http/transport_test.go
@@ -6328,6 +6328,7 @@ func TestTransportClone(t *testing.T) {
GetProxyConnectHeader: func(context.Context, *url.URL, string) (Header, error) { return nil, nil },
MaxResponseHeaderBytes: 1,
ForceAttemptHTTP2: true,
+ HTTP2: &HTTP2Config{MaxConcurrentStreams: 1},
TLSNextProto: map[string]func(authority string, c *tls.Conn) RoundTripper{
"foo": func(authority string, c *tls.Conn) RoundTripper { panic("") },
},