b9c4ad0b2b
With this change, we are now able to change more dependent code to simplify the way in which we create and manage resolvers. See https://github.com/ooni/probe/issues/1591
17 lines
413 B
Go
17 lines
413 B
Go
package httptransport
|
|
|
|
import (
|
|
"github.com/ooni/probe-cli/v3/internal/netxlite"
|
|
)
|
|
|
|
// NewHTTP3Transport creates a new HTTP3Transport instance.
|
|
//
|
|
// Deprecation warning
|
|
//
|
|
// New code should use netxlite.NewHTTP3Transport instead.
|
|
func NewHTTP3Transport(config Config) RoundTripper {
|
|
return netxlite.NewHTTP3Transport(
|
|
netxlite.NewQUICDialerFromContextDialerAdapter(config.QUICDialer),
|
|
config.TLSConfig)
|
|
}
|