Versions in this module Expand all Collapse all v2 v2.1.0 Apr 20, 2026 v2.0.0 Apr 20, 2026 Changes in this version + func NewTransport(cfg *Config) http.RoundTripper + type Client struct + func New() *Client + func NewWithConfig(cfg *Config) *Client + func (c *Client) Delete(ctx context.Context, url string) (*http.Response, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) DoWithRetry(req *http.Request, cfg *RetryConfig) (*http.Response, error) + func (c *Client) Get(ctx context.Context, url string) (*http.Response, error) + func (c *Client) HTTPClient() *http.Client + func (c *Client) Head(ctx context.Context, url string) (*http.Response, error) + func (c *Client) Patch(ctx context.Context, url, contentType string, body io.Reader) (*http.Response, error) + func (c *Client) Post(ctx context.Context, url, contentType string, body io.Reader) (*http.Response, error) + func (c *Client) Put(ctx context.Context, url, contentType string, body io.Reader) (*http.Response, error) + type Config struct + Logger *slog.Logger + Timeout time.Duration + Tracer *trace.Tracer + Transport http.RoundTripper + type Doer interface + Do func(req *http.Request) (*http.Response, error) + type RetryConfig struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + RetryOnError bool + RetryableStatus []int