Documentation ¶
Index ¶
- func Get(url string) ([]byte, error)
- func GetHTTPClientTimeout(timeout time.Duration) *http.Client
- func GetHTTPClientTimeoutWithoutKeepAlive(timeout time.Duration) *http.Client
- func GetPesterClient(timeout time.Duration, concurrency int, retries int) *pester.Client
- func GetResilient(url string) ([]byte, error)
- func GetTimeout(url string, timeout time.Duration) ([]byte, error)
- func GetTimeoutAndRetries(url string, timeout time.Duration, retries int) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get does a GET request and returns the result, returns an error if the StatusCode was not 2xx
func GetHTTPClientTimeout ¶
GetHTTPClientTimeout returns a HTTP client with a specified timeout
func GetHTTPClientTimeoutWithoutKeepAlive ¶
GetHTTPClientTimeoutWithoutKeepAlive returns a HTTP client with a specified timeout and without http keep alive
func GetPesterClient ¶
GetPesterClient returns a Pester client with the specified variables
func GetResilient ¶
GetResilient does a GET request with up to three retries and concurrency, and returns the result, returns an error if the StatusCode was not 2xx
func GetTimeout ¶
GetTimeout does a GET request and returns the result, with a specified timeout, returns an error if the StatusCode was not 2xx
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.