http3: improve the client API (#4693)

* http3: rename RoundTripper to Transport

* http3: rename SingleDestinationRoundTripper to ClientConn

* http3: construct the ClientConn via Transport.NewClientConn
This commit is contained in:
Marten Seemann
2024-10-14 00:17:50 -05:00
committed by GitHub
parent eaa879f32f
commit 1db805ce4f
8 changed files with 389 additions and 324 deletions

View File

@@ -40,7 +40,7 @@ func main() {
}
testdata.AddRootCA(pool)
roundTripper := &http3.RoundTripper{
roundTripper := &http3.Transport{
TLSClientConfig: &tls.Config{
RootCAs: pool,
InsecureSkipVerify: *insecure,