We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ffadf commit d01ad5aCopy full SHA for d01ad5a
content/docs/http3/client.md
@@ -8,7 +8,10 @@ This package provides a `http.RoundTripper` implementation that can be used on t
8
9
```go
10
tr := &http3.Transport{
11
- TLSClientConfig: &tls.Config{}, // set a TLS client config, if desired
+ // set a TLS client config, if desired
12
+ TLSClientConfig: &tls.Config{
13
+ NextProtos: []string{http3.NextProtoH3}, // set the ALPN for HTTP/3
14
+ },
15
QUICConfig: &quic.Config{}, // QUIC connection options
16
}
17
defer tr.Close()
0 commit comments