Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnectionToHost ¶
CheckConnectionToHost checks if a connection can be established to the host specified in the URL.
Types ¶
type ConnectionOption ¶ added in v1.0.7
type ConnectionOption func(*ConnectionOptions)
func WithProxyFunc ¶ added in v1.0.7
this is overridable mainly for testing purposes to avoid using environment variables to manipulate the proxy environment and because the default ProxyFunc always skips the proxy for localhost/loopback addresses, it does not require that they be listed in the NO_PROXY environment variable. This makes testing difficult since we would need to manipulate the dns resolution on the test machine (ex: modify /etc/hosts).
Click to show internal directories.
Click to hide internal directories.