Versions in this module Expand all Collapse all v0 v0.2.0 Oct 15, 2025 Changes in this version + type Client struct + func New(ctx context.Context, cfg config.HTTPClientConfig) (*Client, error) + func (c *Client) Close() error + func (c *Client) Delete(ctx context.Context, url string) *Request + func (c *Client) Get(ctx context.Context, url string) *Request + func (c *Client) Head(ctx context.Context, url string) *Request + func (c *Client) NewRequest(ctx context.Context) *Request + func (c *Client) Options(ctx context.Context, url string) *Request + func (c *Client) Patch(ctx context.Context, url string) *Request + func (c *Client) Post(ctx context.Context, url string) *Request + func (c *Client) Put(ctx context.Context, url string) *Request + func (c *Client) WithAuthToken(token string) *Client + func (c *Client) WithBasicAuth(username, password string) *Client + func (c *Client) WithDefaultHeader(key, value string) *Client + func (c *Client) WithDefaultHeaders(headers map[string]string) *Client + func (c *Client) WithLogging(logger *zerolog.Logger) *Client + func (c *Client) WithMetrics(namespace string) *Client + func (c *Client) WithTracing(serviceName string) *Client + type Request struct + func (r *Request) Do() (*Response, error) + func (r *Request) IntoJSON(result interface{}) *Request + func (r *Request) IntoProto(msg proto.Message) *Request + func (r *Request) SetMethod(method string) *Request + func (r *Request) SetURL(url string) *Request + func (r *Request) WithAuthToken(token string) *Request + func (r *Request) WithBasicAuth(username, password string) *Request + func (r *Request) WithBody(body []byte) *Request + func (r *Request) WithFormData(data map[string]string) *Request + func (r *Request) WithHeader(key, value string) *Request + func (r *Request) WithHeaders(headers map[string]string) *Request + func (r *Request) WithJSON(body interface{}) *Request + func (r *Request) WithProto(msg proto.Message) *Request + func (r *Request) WithQuery(key, value string) *Request + func (r *Request) WithQueryParams(params map[string]string) *Request + func (r *Request) WithTimeout(timeout time.Duration) *Request + type Response struct + func (r *Response) Body() []byte + func (r *Response) BodyAsJSON(dest interface{}) error + func (r *Response) BodyAsProto(msg proto.Message) error + func (r *Response) BodyAsString() string + func (r *Response) Error() error + func (r *Response) Header(key string) string + func (r *Response) Headers() http.Header + func (r *Response) IsError() bool + func (r *Response) IsSuccess() bool + func (r *Response) Status() string + func (r *Response) StatusCode() int