Versions in this module Expand all Collapse all v1 v1.0.0 Aug 28, 2020 Changes in this version + var ErrInvalidNumSimultaneousRequests error = errors.New("the number of simultaneous requests is invalid") + var ErrInvalidRequestTimeout error = errors.New("the request timeout is invalid") + var ErrMaxRequestsReached error = errors.New("the maximum number of requests was reached") + var ErrNullConfiguration error = errors.New("configuration is null") + type Configuration struct + MaxSimultaneousRequests uint64 + RequestTimeout funks.Duration + SkipCertificateValidation bool + func (c *Configuration) Validate() error + type Instance struct + func New(configuration *Configuration) (*Instance, error) + func (i *Instance) CloseIdleConnections() + func (i *Instance) Do(req *http.Request) (resp *http.Response, err error) + func (i *Instance) Get(url string) (resp *http.Response, err error) + func (i *Instance) Head(url string) (resp *http.Response, err error) + func (i *Instance) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) + func (i *Instance) PostForm(url string, data url.Values) (resp *http.Response, err error)