Versions in this module Expand all Collapse all v0 v0.0.5 Oct 9, 2026 v0.0.4 Aug 24, 2026 v0.0.3 Aug 22, 2026 v0.0.2 Aug 5, 2026 v0.0.1 Jul 27, 2026 Changes in this version + const Authorization + const CliUserAgent + const ContentType + const DefaultRetryAfterSeconds + const DefaultRetryCount + const RetryAfter + const UserAgent + func AddAuthorizationHeader(req *http.Request, bearerToken string) + func AddContentTypeJson(req *http.Request) + func AddContentTypeUrlEncoded(req *http.Request) + func AddRequestHeader(req *http.Request, key, value string) + func AddUserAgentHeader(req *http.Request) + func CloseBodyReader(rc io.ReadCloser) + func DoFormat(bytes []byte, v common.Values, f string) + func RetryWait(count int64, fn func() bool) bool + type Client struct + Do Do + HttpClient *http.Client + MaxRetry int64 + StatusCode int + func NewClient() *Client + func RetriableClient(retries int64) *Client + func RetriableClientWithStatus(retries int64, status int) *Client + func (c *Client) Get(url string) (*http.Response, error) + func (c *Client) Post(url string, body io.Reader) (*http.Response, error) + func (c *Client) RetriableDo(req *http.Request) (*http.Response, error) + func (c *Client) RetryWithBackoff(logger *config.Log, i int64, resp *http.Response, err error) bool + type Do func(req *http.Request) (*http.Response, error)