Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLinkLocal ¶ added in v0.27.0
IsLinkLocal reports whether ip is a link-local address or an IPv6 transition address that embeds one.
func IsLoopback ¶ added in v0.27.0
IsLoopback reports whether ip is a loopback address, the unspecified address (which connects to the local host), or an IPv6 transition address that embeds a loopback address. An embedded 0.0.0.0 does not count: a translator would deliver it to its own host, not ours.
func IsPrivate ¶ added in v0.27.0
IsPrivate reports whether ip is a private address or an IPv6 transition address that embeds one.
func NewSafeTransport ¶
func NewSafeTransport(options Options) http.RoundTripper
func ValidateURL ¶ added in v0.27.0
ValidateURL applies the same address policy used when making HTTP requests. Callers must still use a policy-enforcing transport when they connect, since DNS can change between validation and the request.