Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResponseBody ¶
DecodeResponseBody attempts to decode a compressed HTTP response body.
Types ¶
type DelayedTransport ¶
type DelayedTransport struct {
Transport http.RoundTripper
Delay time.Duration
}
type FetchResult ¶
type FetchResult struct {
InitialURL *url.URL
FinalURL *url.URL
Response *http.Response
RedirectTarget *url.URL
Redirected bool
RedirectedToHTTPS bool
}
func Fetch ¶
func Fetch(target string) (*FetchResult, error)
func FetchWithTLSConfig ¶
func FetchWithTLSConfig(target string, tlsConfig *tls.Config) (*FetchResult, error)
Click to show internal directories.
Click to hide internal directories.