Versions in this module Expand all Collapse all v1 v1.2.5 May 11, 2024 v1.2.4 May 11, 2024 Changes in this version + var MethodNames = []string + var PermanentRedirectStatusCodes = []int + var RedirectStatusCodes = []int + type PrepareRequest struct + Body io.Reader + Cookies *cookiejar.Jar + Headers *http.Header + Method string + Url string + func NewPrepareRequest() *PrepareRequest + func (pr *PrepareRequest) Prepare(method, url string, params *url.Params, headers *http.Header, ...) error + func (pr *PrepareRequest) Prepare_auth(auth []string, rawurl string) error + func (pr *PrepareRequest) Prepare_body(data *url.Values, files *url.Files, json map[string]interface{}, bodys string) error + func (pr *PrepareRequest) Prepare_cookies(cookies *cookiejar.Jar) + func (pr *PrepareRequest) Prepare_headers(headers *http.Header) error + func (pr *PrepareRequest) Prepare_method(method string) error + func (pr *PrepareRequest) Prepare_url(rawurl string, params *url.Params) error + type Request struct + Auth []string + Body string + Cookies *cookiejar.Jar + Data *url.Values + Files *url.Files + Headers *http.Header + Json map[string]interface{} + Method string + Params *url.Params + Url string + func (req *Request) Prepare() *PrepareRequest + type Response struct + Body io.ReadCloser + Content []byte + Cookies []*http.Cookie + Headers http.Header + History []*Response + Request *url.Request + StatusCode int + Text string + Url string + func (res *Response) Json() (map[string]interface{}, error) + func (res *Response) RaiseForStatus() error + func (res *Response) SimpleJson() (*simplejson.Json, error) + func (res Response) IsPermanentRedirect() bool + func (res Response) IsRedirect() bool + func (res Response) Ok() bool