6895946a34
With this factory, we want to construct ourselves the TLS dialer so that we can use a dialer wrapper that always sets timeouts when reading, addressing https://github.com/ooni/probe/issues/1609. As a result, we cannot immediately replace the i/e/netx factory for creating a new HTTP transport, since the functions signatures are not directly compatible. Refactoring is part of https://github.com/ooni/probe/issues/1505.
15 lines
360 B
Go
15 lines
360 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(config.QUICDialer, config.TLSConfig)
|
|
}
|