Documentation ¶
Index ¶
- func LoadJar(src string) http.CookieJar
- type Client
- func (c *Client) DoGet(url string, params map[string]string) []byte
- func (c *Client) DoLoginGet(url string, params map[string]string) []byte
- func (c *Client) DoPost(url string, req *http.Request, params Params, body []byte) []byte
- func (c *Client) DoPostForm(url string, req *http.Request, params Params, form PostForm, body []byte) []byte
- func (c *Client) LoadJar(src string)
- func (c *Client) NewRequest(method string, headers Headers, url string, params Params, body []byte) *http.Request
- func (c *Client) SaveJar(jar http.CookieJar)
- type Headers
- type Params
- type PostForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client 网络客户端
func (*Client) DoLoginGet ¶
DoLoginGet 用于登录的请求
func (*Client) DoPostForm ¶
func (c *Client) DoPostForm(url string, req *http.Request, params Params, form PostForm, body []byte) []byte
DoPostForm 执行POSTFORM
Click to show internal directories.
Click to hide internal directories.