Documentation ¶
Index ¶
- type APIError
- type HTTPClient
- func (c *HTTPClient) DoRequest(url, method string, body []byte, header *fasthttp.RequestHeader) ([]byte, error)
- func (c *HTTPClient) Get(url string) []byte
- func (c *HTTPClient) GetWithHeader(url string, header map[string]string) []byte
- func (c *HTTPClient) Post(url string, body []byte) []byte
- func (c *HTTPClient) PostWithHeader(url string, body []byte, header map[string]string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient() *HTTPClient
func (*HTTPClient) DoRequest ¶
func (c *HTTPClient) DoRequest(url, method string, body []byte, header *fasthttp.RequestHeader) ([]byte, error)
func (*HTTPClient) Get ¶
func (c *HTTPClient) Get(url string) []byte
func (*HTTPClient) GetWithHeader ¶
func (c *HTTPClient) GetWithHeader(url string, header map[string]string) []byte
func (*HTTPClient) PostWithHeader ¶
Click to show internal directories.
Click to hide internal directories.