Skip to content

http3: set the h3 ALPN in the client’s tls.Config #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion content/docs/http3/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ This package provides a `http.RoundTripper` implementation that can be used on t

```go
tr := &http3.Transport{
TLSClientConfig: &tls.Config{}, // set a TLS client config, if desired
// set a TLS client config, if desired
TLSClientConfig: &tls.Config{
NextProtos: []string{http3.NextProtoH3}, // set the ALPN for HTTP/3
},
QUICConfig: &quic.Config{}, // QUIC connection options
}
defer tr.Close()
Expand Down