Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(url string, headers map[string]string) (*http.Response, error)
- func (c *Client) DoRequest(method, url string, headers map[string]string, body interface{}) (*http.Response, error)
- func (c *Client) Get(url string, headers map[string]string) (*http.Response, error)
- func (c *Client) Post(url string, headers map[string]string, body interface{}) (*http.Response, error)
- func (c *Client) Put(url string, headers map[string]string, body interface{}) (*http.Response, error)
- type SSEClient
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 is the custom HTTP client
func (*Client) DoRequest ¶
func (c *Client) DoRequest(method, url string, headers map[string]string, body interface{}) (*http.Response, error)
DoRequest is a generic method to handle all HTTP methods
type SSEClient ¶
type SSEClient struct {
// contains filtered or unexported fields
}
SSEClient handles Server-Sent Events
func NewSSEClient ¶
NewSSEClient creates a new SSE client
Click to show internal directories.
Click to hide internal directories.