Documentation
¶
Overview ¶
Package httpclient contains an http client
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, path string, target any) error
- func (c *Client) Get(ctx context.Context, path string, params any, target any) error
- func (c *Client) Post(ctx context.Context, path string, body any, target any) error
- func (c *Client) SetAPIKey(key *string)
- func (c *Client) SetAuthToken(token *string)
- func (c *Client) SetBaseURL(baseURL string)
- func (c *Client) SetUserAgent(userAgent *string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages making HTTP requests to the API.
func (*Client) SetAuthToken ¶
SetAuthToken updates the authentication token.
func (*Client) SetBaseURL ¶
SetBaseURL updates the base URL used for requests.
func (*Client) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.