Versions in this module Expand all Collapse all v0 v0.1.0 Mar 18, 2021 Changes in this version + var ErrStatusCode = errors.New("status code internal error") + type Client struct + func NewClient(opts ...Option) *Client + func (c *Client) Delete(ctx context.Context, url string, headers http.Header) (*http.Response, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) Get(ctx context.Context, url string, headers http.Header) (*http.Response, error) + func (c *Client) Patch(ctx context.Context, url string, body io.Reader, headers http.Header) (*http.Response, error) + func (c *Client) Post(ctx context.Context, url string, body io.Reader, headers http.Header) (*http.Response, error) + func (c *Client) Put(ctx context.Context, url string, body io.Reader, headers http.Header) (*http.Response, error) + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Option func(*Client) + func WithHTTPClient(client Doer) Option + func WithRetrier(retrier Retrier) Option + func WithRetryPolicy(retryPolicy RetryPolicy) Option + type RequestCreationError struct + Err error + func (e *RequestCreationError) Error() string + type Retrier interface + Do func(context.Context, func(context.Context) error) error + type RetryPolicy func(statusCode int) bool