Versions in this module Expand all Collapse all v0 v0.1.2 Jan 28, 2021 Changes in this version + const TypeForm + const TypeFormData + const TypeHTML + const TypeJSON + const TypeMultipart + const TypeText + const TypeUrlencoded + const TypeXML v0.1.1 Jan 27, 2021 Changes in this version + type Auth []string + type DataItem map[string]string + type Files map[string]string + type Header map[string]string + type Params map[string]string + type Request struct + Client *http.Client + Cookies []*http.Cookie + Debug int + Header *http.Header + Host string + func Requests() *Request + func (req *Request) ClearCookies() + func (req *Request) ClientSetCookies() + func (req *Request) Get(origUrl string, args ...interface{}) (resp *Response, err error) + func (req *Request) Post(origUrl string, args ...interface{}) (resp *Response, err error) + func (req *Request) PostJson(origUrl string, args ...interface{}) (resp *Response, err error) + func (req *Request) Proxy(proxyUrl string) + func (req *Request) RequestDebug() + func (req *Request) Send(method, url string, args ...interface{}) (resp *Response, err error) + func (req *Request) SetCookie(cookie *http.Cookie) + func (req *Request) SetTimeout(n time.Duration) + type Response struct + Length int64 + R *http.Response + StatusCode int + Time int64 + func Get(origUrl string, args ...interface{}) (resp *Response, err error) + func Post(origUrl string, args ...interface{}) (resp *Response, err error) + func PostJson(origUrl string, args ...interface{}) (resp *Response, err error) + func (resp *Response) Content() []byte + func (resp *Response) Cookies() (cookies []*http.Cookie) + func (resp *Response) Json() (map[string]interface{}, error) + func (resp *Response) ResponseDebug() + func (resp *Response) Result() gjson.Result + func (resp *Response) SaveFile(filename string) error + func (resp *Response) Text() string + func (resp *Response) Unmarshal(v interface{}) error