Documentation ¶
Index ¶
- Variables
- func Control(urlValidator furl.Validator) func(network, address string, c syscall.RawConn) error
- func NewDefaultClient(urlValidator furl.Validator) *http.Client
- func NewDefaultClientWithTLS(tlsConfig *tls.Config, urlValidator furl.Validator) *http.Client
- func NewDefaultTransport(dialer *net.Dialer) *http.Transport
- func NewDefaultTransportWithTLS(tlsConfig *tls.Config, dialer *net.Dialer) *http.Transport
- func ParseCIDRsString(s string) (furl.Validator, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultValidator furl.Validator = furl.PassValidator{}
DefaultValidator is the default validator, it can be replaced at start time with a different validator
Functions ¶
func Control ¶ added in v1.6.1
Control is called after DNS lookup, but before the network connection is initiated.
func NewDefaultClient ¶ added in v1.6.1
NewDefaultClient creates a client with sane defaults.
func NewDefaultClientWithTLS ¶ added in v1.6.1
NewDefaultClientWithTLS creates a tls client with sane defaults.
func NewDefaultTransport ¶
NewDefaultTransport creates a new transport with sane defaults.
func NewDefaultTransportWithTLS ¶
NewDefaultTransportWithTLS creates a new transport with the specified TLS configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.