Versions in this module Expand all Collapse all v1 v1.1.2 Feb 19, 2024 Changes in this version + func Export(v interface{}) string + func IntByte(v interface{}) []byte + func Json(v interface{}) string + type Request struct + func CheckRedirect(v func(req *http.Request, via []*http.Request) error) *Request + func Debug(v bool) *Request + func DisableKeepAlives(v bool) *Request + func JSON() *Request + func Jar(v http.CookieJar) *Request + func NewRequest() *Request + func Proxy(v func(*http.Request) (*url.URL, error)) *Request + func SetBasicAuth(username, password string) *Request + func SetCookies(cookies map[string]string) *Request + func SetHeaders(headers map[string]string) *Request + func SetTLSClient(v *tls.Config) *Request + func SetTimeout(d time.Duration) *Request + func TLSClient(v *tls.Config) *Request + func Transport(v *http.Transport) *Request + func (r *Request) CheckRedirect(v func(req *http.Request, via []*http.Request) error) *Request + func (r *Request) Debug(v bool) *Request + func (r *Request) Delete(url string, data ...interface{}) (*Response, error) + func (r *Request) DisableKeepAlives(v bool) *Request + func (r *Request) Get(url string, data ...interface{}) (*Response, error) + func (r *Request) JSON() *Request + func (r *Request) Jar(v http.CookieJar) *Request + func (r *Request) Post(url string, data ...interface{}) (*Response, error) + func (r *Request) Proxy(v func(*http.Request) (*url.URL, error)) *Request + func (r *Request) Put(url string, data ...interface{}) (*Response, error) + func (r *Request) SetBasicAuth(username, password string) *Request + func (r *Request) SetCookies(cookies map[string]string) *Request + func (r *Request) SetHeaders(headers map[string]string) *Request + func (r *Request) SetTLSClient(v *tls.Config) *Request + func (r *Request) SetTimeout(d time.Duration) *Request + func (r *Request) TLSClient(v *tls.Config) *Request + func (r *Request) Transport(v *http.Transport) *Request + func (r *Request) Upload(url, filename, fileinput string) (*Response, error) + type Response struct + func Delete(url string, data ...interface{}) (*Response, error) + func Get(url string, data ...interface{}) (*Response, error) + func Post(url string, data ...interface{}) (*Response, error) + func Put(url string, data ...interface{}) (*Response, error) + func Upload(url, filename, fileinput string) (*Response, error) + func (r *Response) Body() ([]byte, error) + func (r *Response) Close() error + func (r *Response) Content() (string, error) + func (r *Response) Cookies() []*http.Cookie + func (r *Response) Export() (string, error) + func (r *Response) Headers() http.Header + func (r *Response) Json(v interface{}) error + func (r *Response) Response() *http.Response + func (r *Response) StatusCode() int + func (r *Response) Time() string + func (r *Response) Unmarshal(v interface{}) error + func (r *Response) Url() string