Versions in this module Expand all Collapse all v1 v1.0.2 Feb 8, 2021 Changes in this version + type CookieJar struct + func NewCookieJar() *CookieJar + func (j *CookieJar) Cookies(u *url.URL) (cookies []*http.Cookie) + func (j *CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) + type HttpClient struct + func NewHttpClient() *HttpClient + func (this *HttpClient) SetCookieJar(j *CookieJar) *HttpClient + func (this *HttpClient) SetProxy(proxyUrl string) + func (this *HttpClient) SetRedirect(f func(req *http.Request, via []*http.Request) error) *HttpClient + func (this *HttpClient) SetSkipVerify(isSkipVerify bool) + func (this *HttpClient) SetTimeout(t time.Duration) *HttpClient + func (this *HttpClient) SetTransport(t *http.Transport) *HttpClient + type Request struct + func NewRequest(client *HttpClient) *Request + func (this *Request) End() (*http.Response, string, error) + func (this *Request) EndBytes() (*http.Response, []byte, error) + func (this *Request) EndFile(savePath, saveFileName string) (*http.Response, error) + func (this *Request) Send(a ...interface{}) *Request + func (this *Request) SetCookies(cookies *[]*http.Cookie) *Request + func (this *Request) SetData(name, value string) *Request + func (this *Request) SetFileData(name, value string, isFile bool) *Request + func (this *Request) SetHeader(name, value string) *Request + func (this *Request) SetJsonData(s string) *Request + func (this *Request) SetMethod(name string) *Request + func (this *Request) SetUrl(url string) *Request + func (this *Request) SetVerbose(d bool) *Request