2021-02-02 12:05:47 +01:00
|
|
|
package httptransport
|
|
|
|
|
|
|
|
import (
|
2021-06-30 15:19:10 +02:00
|
|
|
"github.com/ooni/probe-cli/v3/internal/netxlite"
|
2021-02-02 12:05:47 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewHTTP3Transport creates a new HTTP3Transport instance.
|
2021-07-01 15:26:08 +02:00
|
|
|
//
|
|
|
|
// Deprecation warning
|
|
|
|
//
|
|
|
|
// New code should use netxlite.NewHTTP3Transport instead.
|
2021-02-02 12:05:47 +01:00
|
|
|
func NewHTTP3Transport(config Config) RoundTripper {
|
2021-09-06 21:52:00 +02:00
|
|
|
return netxlite.NewHTTP3Transport(
|
|
|
|
netxlite.NewQUICDialerFromContextDialerAdapter(config.QUICDialer),
|
|
|
|
config.TLSConfig)
|
2021-02-02 12:05:47 +01:00
|
|
|
}
|