Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(path string) (gjson.Result, error)
- func (c *Client) Do(method, path string, body interface{}, headers map[string]string) (gjson.Result, error)
- func (c *Client) Get(path string) (gjson.Result, error)
- func (c *Client) Patch(path string, body interface{}) (gjson.Result, error)
- func (c *Client) Post(path string, body interface{}) (gjson.Result, error)
- func (c *Client) Put(path string, body interface{}) (gjson.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string HttpClient *http.Client Token string // Bearer token for authentication }
Client is a simple HTTP client for making requests.
func (*Client) Delete ¶
Delete performs a DELETE request and returns the response as a gjson.Result.
func (*Client) Do ¶
func (c *Client) Do(method, path string, body interface{}, headers map[string]string) (gjson.Result, error)
Do performs an HTTP request and returns the response as a gjson.Result.
Click to show internal directories.
Click to hide internal directories.