Documentation
¶
Index ¶
- func NewClient(blockLoopback, blockPrivateIP, blockLinkLocal bool) *http.Client
- func NewClientWithAllowList(blockLoopback, blockPrivateIP, blockLinkLocal bool, allowList []string) *http.Client
- func NewClientWithAllowListAndTimeout(blockLoopback, blockPrivateIP, blockLinkLocal bool, allowList []string, ...) *http.Client
- func NewClientWithTimeout(blockLoopback, blockPrivateIP, blockLinkLocal bool, timeout time.Duration) *http.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithAllowList ¶ added in v0.0.89
func NewClientWithAllowList(blockLoopback, blockPrivateIP, blockLinkLocal bool, allowList []string) *http.Client
NewClientWithAllowList returns an HTTP client that can block selected local address ranges, except for matching hosts in the allow list.
func NewClientWithAllowListAndTimeout ¶ added in v0.0.89
func NewClientWithAllowListAndTimeout(blockLoopback, blockPrivateIP, blockLinkLocal bool, allowList []string, timeout time.Duration) *http.Client
NewClientWithAllowListAndTimeout returns an HTTP client that can block selected local address ranges with a custom timeout, except for matching hosts in the allow list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.