Versions in this module Expand all Collapse all v0 v0.5.0 Mar 30, 2026 v0.4.1 Mar 28, 2026 Changes in this version + func ReadBody(body io.ReadCloser, maxBodyBytes int64) (bodyStr string, truncated bool, err error) + type Client struct + func NewClient(opts ...Option) *Client + func (c *Client) Delete(ctx context.Context, url string, headers map[string]string, maxBodyBytes int64) (*Response, error) + func (c *Client) Do(ctx context.Context, method, url string, headers map[string]string, ...) (*Response, error) + func (c *Client) Get(ctx context.Context, url string, headers map[string]string, maxBodyBytes int64) (*Response, error) + func (c *Client) Post(ctx context.Context, url string, headers map[string]string, body string, ...) (*Response, error) + func (c *Client) Put(ctx context.Context, url string, headers map[string]string, body string, ...) (*Response, error) + type HTTPDoer interface + Do func(req *http.Request) (*http.Response, error) + type Option func(*Client) + func WithDoer(doer HTTPDoer) Option + func WithTimeout(timeout time.Duration) Option + type Response struct + Body string + Headers map[string]string + StatusCode int + Truncated bool