outboundhttp

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRedirect

func CheckRedirect(request *http.Request, _ []*http.Request) error

func IPAllowed

func IPAllowed(ip net.IP) bool

func NewTransport

func NewTransport(baseTransport *http.Transport, options TransportOptions) (*http.Transport, error)

NewTransport creates a transport that validates and pins every dialed address.

func RequirePublicURL

func RequirePublicURL(targetURL *url.URL) error

Types

type Resolver

type Resolver interface {
	LookupIPAddr(context.Context, string) ([]net.IPAddr, error)
}

type SourceOverride

type SourceOverride struct {
	Host    string
	Address net.IP
	Port    string
}

type TransportOptions

type TransportOptions struct {
	Resolver       Resolver
	Dialer         *net.Dialer
	SourceOverride SourceOverride
}

Jump to

Keyboard shortcuts

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