Versions in this module Expand all Collapse all v1 v1.0.0 Apr 20, 2020 Changes in this version + type Client struct + func NewAuthClient(username, password string, tlsConfig *tls.Config) *Client + func NewClient(tlsConfig *tls.Config) *Client + func (c *Client) ConnectTimeout(timeout time.Duration) + func (c *Client) Logger(logger Logger) + func (c *Client) ReadWriteTimeout(timeout time.Duration) + func (c Client) Delete(url string, query url.Values, body io.Reader) (*Response, error) + func (c Client) Get(url string, query url.Values) (*Response, error) + func (c Client) GetConnectTimeout() time.Duration + func (c Client) GetReadWriteTimeout() time.Duration + func (c Client) Post(url string, query url.Values, body io.Reader) (*Response, error) + type Logger interface + Logf func(format string, args ...interface{}) + type Response struct + func (r Response) Verify(code int, contentType string) error + func (r Response) VerifyCode(code int) error + func (r Response) VerifyContentType(contentType string) error + func (r Response) VerifyJSON(code int) error