Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2023 Changes in this version + const GET + const POST + const PUT + type HttpClient struct + func NewDefaultHttpClient(baseURL string) *HttpClient + func NewInsecureHttpClient(baseURL string) *HttpClient + func NewSecureHttpClient(baseURL string, certificate []byte) *HttpClient + func (c *HttpClient) Do(method, endpoint string, body io.Reader, modifiers ...RequestModifier) (*http.Response, error) + type RequestError struct + Message string + StatusCode uint + func (e RequestError) Error() string + type RequestModifier func(*http.Request) + func WithApiKey(key string) RequestModifier + type Requester interface + Do func(method, endpoint string, body io.Reader, modifiers ...RequestModifier) (*http.Response, error)