Documentation
¶
Index ¶
- func CheckRedirect(request *http.Request, _ []*http.Request) error
- func IPAllowed(ip net.IP) bool
- func NewTransport(baseTransport *http.Transport, options TransportOptions) (*http.Transport, error)
- func RequirePublicURL(targetURL *url.URL) error
- type Resolver
- type SourceOverride
- type TransportOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
NewTransport creates a transport that validates and pins every dialed address.
func RequirePublicURL ¶
Types ¶
type TransportOptions ¶
type TransportOptions struct {
Resolver Resolver
Dialer *net.Dialer
SourceOverride SourceOverride
}
Click to show internal directories.
Click to hide internal directories.