const maxRespBodyLength … // New creates Prober that will skip TLS verification while probing. // followNonLocalRedirects configures whether the prober should follow redirects to a different hostname. // If disabled, redirects to other hosts will trigger a warning result. func New(followNonLocalRedirects bool) Prober { … } // NewWithTLSConfig takes tls config as parameter. // followNonLocalRedirects configures whether the prober should follow redirects to a different hostname. // If disabled, redirects to other hosts will trigger a warning result. func NewWithTLSConfig(config *tls.Config, followNonLocalRedirects bool) Prober { … } type Prober … type httpProber … // Probe returns a ProbeRunner capable of running an HTTP check. func (pr httpProber) Probe(req *http.Request, timeout time.Duration) (probe.Result, string, error) { … } type GetHTTPInterface … // DoHTTPProbe checks if a GET request to the url succeeds. // If the HTTP response code is successful (i.e. 400 > code >= 200), it returns Success. // If the HTTP response code is unsuccessful or HTTP communication fails, it returns Failure. // This is exported because some other packages may want to do direct HTTP probes. func DoHTTPProbe(req *http.Request, client GetHTTPInterface) (probe.Result, string, error) { … } // RedirectChecker returns a function that can be used to check HTTP redirects. func RedirectChecker(followNonLocalRedirects bool) func(*http.Request, []*http.Request) error { … }