Versions in this module Expand all Collapse all v1 v1.0.1 Apr 25, 2021 v1.0.0 Mar 9, 2021 Changes in this version + const ApplicationFormUrlencoded + const ApplicationJSON + const ContentType + func AddRequestInterceptors(interceptors ...RequestInterceptor) + type Client struct + func Delete(url string) *Client + func Get(url string) *Client + func Post(url string) *Client + func Put(url string) *Client + func Request(url, method string, client *http.Client) *Client + func (c *Client) Form(form url.Values) *Client + func (c *Client) Header(k, v string) *Client + func (c *Client) Headers(header http.Header) *Client + func (c *Client) Json(json interface{}) *Client + func (c *Client) Multipart(multipart FileForm) *Client + func (c *Client) Params(params url.Values) *Client + func (c *Client) Send() *Result + type FileForm struct + File map[string]string + Value url.Values + type RequestInterceptor func(request *http.Request) error + type Result struct + Err error + Resp *http.Response + func (r *Result) Json(v interface{}) error + func (r *Result) Raw() ([]byte, error) + func (r *Result) Save(name string) error + func (r *Result) Status2xx() *Result + func (r *Result) StatusOk() *Result + func (r *Result) Text() (string, error)