Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPolicyError ¶
Types ¶
type Policy ¶
type Policy struct {
Timeout time.Duration
MaxRedirects int
AllowPrivateNetwork bool
AllowedPrivateOrigins []string
DisableCompression bool
LookupNetIP func(context.Context, string, string) ([]netip.Addr, error)
DialContext func(context.Context, string, string) (net.Conn, error)
TLSClientConfig *tls.Config
}
type PolicyError ¶
type PolicyError struct {
Reason string
}
func (*PolicyError) Error ¶
func (e *PolicyError) Error() string
Click to show internal directories.
Click to hide internal directories.