Versions in this module Expand all Collapse all v1 v1.0.0 Apr 24, 2019 Changes in this version + func ClientDo(c *http.Client, req *http.Request) (resp *http.Response, attempts int, err error) + func ClientGet(c *http.Client, url string) (resp *http.Response, attempts int, err error) + func ClientHead(c *http.Client, url string) (resp *http.Response, attempts int, err error) + func ClientPost(c *http.Client, url string, bodyType string, body []byte) (resp *http.Response, attempts int, err error) + func ClientPostForm(c *http.Client, url string, data url.Values) (resp *http.Response, attempts int, err error) + func Get(url string) (resp *http.Response, attempts int, err error) + func Head(url string) (resp *http.Response, attempts int, err error) + func Post(url string, bodyType string, body []byte) (resp *http.Response, attempts int, err error) + func PostForm(url string, data url.Values) (resp *http.Response, attempts int, err error) + func Retry(httpCall func() (resp *http.Response, tempError error, permError error)) (*http.Response, int, error) + type BadHttpResponseCode struct + HttpResponseCode int + Message string + func (err BadHttpResponseCode) Error() string + type Client struct + BackOffSettings *backoff.ExponentialBackOff + func (httpRetryClient *Client) ClientDo(c *http.Client, req *http.Request) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) ClientGet(c *http.Client, url string) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) ClientHead(c *http.Client, url string) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) ClientPost(c *http.Client, url string, bodyType string, body []byte) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) ClientPostForm(c *http.Client, url string, data url.Values) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) Get(url string) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) Head(url string) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) Post(url string, bodyType string, body []byte) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) PostForm(url string, data url.Values) (resp *http.Response, attempts int, err error) + func (httpRetryClient *Client) Retry(httpCall func() (resp *http.Response, tempError error, permError error)) (*http.Response, int, error) Other modules containing this package github.com/taskcluster/httpbackoff/v3