Versions in this module Expand all Collapse all v0 v0.0.1 Jan 5, 2023 Changes in this version + const LoopbackInterfaceName + func AppendForwardedForHeader(req *http.Request) + func ChooseBindAddressForInterface(intfName string) (net.IP, error) + func ChooseHostInterface() (net.IP, error) + func CloneHeader(in http.Header) http.Header + func CloneRequest(req *http.Request) *http.Request + func CloseIdleConnectionsFor(transport http.RoundTripper) + func FormatURL(scheme string, host string, port int, path string) *url.URL + func GetClientIP(req *http.Request) net.IP + func GetHTTPClient(req *http.Request) string + func IPNetEqual(ipnet1, ipnet2 *net.IPNet) bool + func IsConnectionRefused(err error) bool + func IsConnectionReset(err error) bool + func IsNoRoutesError(err error) bool + func IsProbableEOF(err error) bool + func IsTimeout(err error) bool + func JoinPreservingTrailingSlash(elem ...string) string + func JoinSchemeNamePort(scheme, name, port string) string + func NewProxierWithNoProxyCIDR(delegate func(req *http.Request) (*url.URL, error)) func(req *http.Request) (*url.URL, error) + func NewWarningHeader(code int, agent, text string) (string, error) + func ResolveBindAddress(bindAddress net.IP) (net.IP, error) + func SetOldTransportDefaults(t *http.Transport) *http.Transport + func SetTransportDefaults(t *http.Transport) *http.Transport + func SourceIPs(req *http.Request) []net.IP + func SplitSchemeNamePort(id string) (scheme, name, port string, valid bool) + func TLSClientConfig(transport http.RoundTripper) (*tls.Config, error) + type AddressFamily uint + type AddressFamilyPreference []AddressFamily + type DialFunc func(ctx context.Context, net, addr string) (net.Conn, error) + func DialerFor(transport http.RoundTripper) (DialFunc, error) + type Dialer interface + Dial func(req *http.Request) (net.Conn, error) + type DialerFunc func(req *http.Request) (net.Conn, error) + func (fn DialerFunc) Dial(req *http.Request) (net.Conn, error) + type PortRange struct + Base int + Size int + func ParsePortRange(value string) (*PortRange, error) + func ParsePortRangeOrDie(value string) *PortRange + func (*PortRange) Type() string + func (pr *PortRange) Contains(p int) bool + func (pr *PortRange) Set(value string) error + func (pr PortRange) String() string + type RoundTripperWrapper interface + WrappedRoundTripper func() http.RoundTripper + type Route struct + Destination net.IP + Family AddressFamily + Gateway net.IP + Interface string + type RouteFile struct + type TLSClientConfigHolder interface + TLSClientConfig func() *tls.Config + type WarningHeader struct + Agent string + Code int + Text string + func ParseWarningHeader(header string) (result WarningHeader, remainder string, err error) + func ParseWarningHeaders(headers []string) ([]WarningHeader, []error)