Versions in this module Expand all Collapse all v1 v1.6.1 Jan 10, 2020 Changes in this version + type DefaultSession struct + Client *http.Client + MaxRetries int + RateLimiter *rate.Limiter + func NewSession(moduleKey string) *DefaultSession + func (s *DefaultSession) ApplyRateLimit() + func (s *DefaultSession) DownloadFile(filepath string, uri string) (err error) + func (s *DefaultSession) Get(uri string) (response *http.Response, err error) + func (s *DefaultSession) GetClient() *http.Client + func (s *DefaultSession) Post(uri string, data url.Values) (response *http.Response, err error) + func (s *DefaultSession) SetClient(client *http.Client) + func (s *DefaultSession) SetProxy(proxySettings *watcherHttp.ProxySettings) (err error)