Versions in this module Expand all Collapse all v0 v0.7.0 Mar 25, 2026 v0.6.6 Mar 25, 2026 Changes in this version + func Body(v any) func(*Request) + func HasStatusCode(err error, codes ...int) bool + func Header(key, val string) func(*Request) + func JSONDecoder(v any) func(*Request) + func QueryParam(key, val string) func(*Request) + type Client struct + func New(cfg Config) *Client + func (c *Client) Call(ctx context.Context, r Request) (int, error) + type Config struct + AuthHeader string + AuthToken string + BaseURL string + Timeout time.Duration + Transport http.RoundTripper + UserAgent string + type HTTPError struct + Body []byte + Method string + Route string + StatusCode int + func (e *HTTPError) Error() string + type Request struct + func NewRequest(method, route string, opts ...func(*Request)) Request