diff --git a/content/docs/http3/client.md b/content/docs/http3/client.md index a251e58..fce057f 100644 --- a/content/docs/http3/client.md +++ b/content/docs/http3/client.md @@ -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()