Versions in this module Expand all Collapse all v1 v1.2.0 Aug 21, 2020 v1.1.3 Jun 29, 2020 Changes in this version + type Client struct + func New(baseURL string, opts ...Option) *Client + func (c *Client) BaseClient() *http.Client + func (c *Client) BaseURL() *url.URL + func (c *Client) Delete(path string, opts ...Option) (*http.Response, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) Get(path string, opts ...Option) (*http.Response, error) + func (c *Client) Header() http.Header + func (c *Client) NewRequest(method, path string, body io.Reader, opts ...Option) (*http.Request, error) + func (c *Client) Post(path string, contentType string, body io.Reader, opts ...Option) (*http.Response, error) + func (c *Client) Put(path string, contentType string, body io.Reader, opts ...Option) (*http.Response, error) + type HTTPError struct + Response *http.Response + func (err *HTTPError) Error() string + type Option func(opts *Options) + func ACSToken(token string) Option + func FailOnErrStatus(failOnErrStatus bool) Option + func Header(key, value string) Option + func Logger(logger *logrus.Logger) Option + func NoFollow() Option + func TLS(tlsConfig *tls.Config) Option + func Timeout(timeout time.Duration) Option + type Options struct + CheckRedirect func(req *http.Request, via []*http.Request) error + FailOnErrStatus bool + Header http.Header + Logger *logrus.Logger + TLS *tls.Config + Timeout time.Duration