Documentation
¶
Index ¶
- type Client
- func (c Client) DELETE(url string, headers map[string]string, body *bytes.Buffer) ([]byte, int, error)
- func (c Client) Get(url string, headers map[string]string, body *bytes.Buffer) ([]byte, int, error)
- func (c Client) POST(url string, headers map[string]string, body *bytes.Buffer) ([]byte, int, error)
- func (c Client) PUT(url string, headers map[string]string, body *bytes.Buffer) ([]byte, int, error)
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 对http client简单封装.
func (Client) DELETE ¶
func (c Client) DELETE(url string, headers map[string]string, body *bytes.Buffer) ([]byte, int, error)
DELETE delete 请求.
Click to show internal directories.
Click to hide internal directories.