Documentation
¶
Index ¶
- func ResToObj(resp *Response, target any) error
- type Client
- func (c *Client) Get(ctx context.Context, url string) (*Response, error)
- func (c *Client) GetHeader(k string) string
- func (c *Client) GetWithReader(ctx context.Context, url string) ([]byte, error)
- func (c *Client) Post(ctx context.Context, url string, body io.Reader) (*Response, error)
- func (c *Client) SetHeader(k, v string)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient() *Client
func (*Client) GetWithReader ¶
Click to show internal directories.
Click to hide internal directories.