pester icon indicating copy to clipboard operation
pester copied to clipboard

Go (golang) http calls with retries and backoff

Results 6 pester issues
Sort by recently updated
recently updated
newest added

The `LogHook` option does not include a way to see the the HTTP status of the response. I would like to log if, for example this is a 500 vs...

A RoundTripper could be used and applied to existing http clients and achieve much the same effect.

When I am making GET requests using Pester, I sporadically get connection reset by peer errors: ``` read tcp 10.24.8.45:37286->13.49.93.125:443 read: connection reset by peer ``` I can detect these...

req, err := http.NewRequest("POST", s.url, buffer) if err != nil { return err } if s.auth != nil { req.SetBasicAuth(s.auth.Login, s.auth.Password) } req.Header.Add("Content-Type", "text/xml; charset=\"utf-8\"") req.Header.Add("SOAPAction", soapAction) req.Header.Set("User-Agent", "gowsdl/0.1") req.Close...

Seems like the logic is going to cache the file **in-memory**, which is super expensive to a simple HTTP POST.