forked from quic-go/quic-go
http3: add (deprecated) type aliases for RoundTripper and SingleDestinationRoundTripper (#4699)
This will make transitioning to the new types easier.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -117,6 +117,9 @@ var (
|
||||
_ io.Closer = &Transport{}
|
||||
)
|
||||
|
||||
// Deprecated: RoundTripper was renamed to Transport.
|
||||
type RoundTripper = Transport
|
||||
|
||||
// ErrNoCachedConn is returned when Transport.OnlyCachedConn is set
|
||||
var ErrNoCachedConn = errors.New("http3: no cached connection was available")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user