http3: add (deprecated) type aliases for RoundTripper and SingleDestinationRoundTripper (#4699)

This will make transitioning to the new types easier.
This commit is contained in:
Marten Seemann
2024-10-14 02:15:46 -05:00
committed by GitHub
parent 2dc1e355ce
commit 588b93c817
2 changed files with 7 additions and 0 deletions

View File

@@ -68,6 +68,10 @@ type ClientConn struct {
var _ http.RoundTripper = &ClientConn{}
// Deprecated: SingleDestinationRoundTripper was renamed to ClientConn.
// It can be obtained by calling NewClientConn on a Transport.
type SingleDestinationRoundTripper = ClientConn
func newClientConn(
conn quic.Connection,
enableDatagrams bool,