http

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 49

Documentation

Index

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

func Control(urlValidator furl.Validator) func(network, address string, c syscall.RawConn) error

Control is called after DNS lookup, but before the network connection is initiated.

func NewDefaultClient added in v1.6.1

func NewDefaultClient(urlValidator furl.Validator) *http.Client

NewDefaultClient creates a client with sane defaults.

func NewDefaultClientWithTLS added in v1.6.1

func NewDefaultClientWithTLS(tlsConfig *tls.Config, urlValidator furl.Validator) *http.Client

NewDefaultClientWithTLS creates a tls client with sane defaults.

func NewDefaultTransport

func NewDefaultTransport(dialer *net.Dialer) *http.Transport

NewDefaultTransport creates a new transport with sane defaults.

func NewDefaultTransportWithTLS

func NewDefaultTransportWithTLS(tlsConfig *tls.Config, dialer *net.Dialer) *http.Transport

NewDefaultTransportWithTLS creates a new transport with the specified TLS configuration.

func ParseCIDRsString added in v1.6.1

func ParseCIDRsString(s string) (furl.Validator, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL