Documentation
¶
Index ¶
- func NewForm(v interface{}) url2.Values
- type Client
- func (c *Client) Get(ctx context.Context, url string, params url2.Values, response interface{}, ...) (data []byte, code int, err error)
- func (c *Client) PostForm(ctx context.Context, url string, values url2.Values, response interface{}, ...) (data []byte, code int, err error)
- func (c *Client) PostJSON(ctx context.Context, url string, request, response interface{}, opts ...Option) (data []byte, code int, err error)
- type Option
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
HTTP客户端
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, url string, params url2.Values, response interface{}, opts ...Option) (data []byte, code int, err error)
GET请求
Click to show internal directories.
Click to hide internal directories.