fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

[Feature Request] HTTP Client Request with Retries and Backoff

Open sujit-baniya opened this issue 5 years ago • 1 comments

If HTTP Client Request has following features it would be great:

  • Retry on Timeout, Connection Closed or No Connection available
  • Backoff and wait till pending request are processed

There's something similar done on net/http

https://github.com/gojek/heimdall

sujit-baniya avatar Jun 16 '20 11:06 sujit-baniya

I'm not exactly sure what you mean by Connection Closed or No Connection available, but there are methods to set and get this header and the header is respected by both the server and client.

All the other things are maybe more for libraries on top of fasthttp. But pull requests are always welcome.

erikdubbelboer avatar Jun 18 '20 20:06 erikdubbelboer