httputil

package
v0.16.3-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoWithRetry

func DoWithRetry(req *http.Request, client *http.Client) (*http.Response, error)

DoWithRetry calls client.Do, and in the case of an error, retries the operation again after a slight delay.

func GetWithRetry

func GetWithRetry(url string, client *http.Client) (*http.Response, error)

GetWithRetry issues a GET request with the given client, and in the case of an error, retries the operation again after a slight delay.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL