Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2018 Changes in this version + type Client struct + func NewClient(c *ClientConfig) *Client + func (client *Client) Do(c context.Context, req *xhttp.Request, res interface{}, v ...string) (err error) + func (client *Client) Get(c context.Context, uri, ip string, params url.Values, res interface{}) (err error) + func (client *Client) NewRequest(method, uri, realIP string, params url.Values) (req *xhttp.Request, err error) + func (client *Client) Post(c context.Context, uri, ip string, params url.Values, res interface{}) (err error) + func (client *Client) Raw(c context.Context, req *xhttp.Request, v ...string) (bs []byte, err error) + func (client *Client) SetTransport(t xhttp.RoundTripper) + type ClientConfig struct + Dial time.Duration + KeepAlive time.Duration