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

@@ -67,7 +67,7 @@ func runTestcase(testcase string) error {
quicConf := &quic.Config{Tracer: utils.NewQLOGConnectionTracer}
if testcase == "http3" {
r := &http3.RoundTripper{
r := &http3.Transport{
TLSClientConfig: tlsConf,
QUICConfig: quicConf,
}