sjinks / node-fetch-retry-ts

Adds retry functionality to fetch()
https://www.npmjs.com/package/fetch-retry-ts
MIT License
6 stars 3 forks source link

Add retry count to the response #790

Open janssen-tiobe opened 11 months ago

janssen-tiobe commented 11 months ago

To get a visual on how many retries have been done before a fetch requests passes or fails it would be nice if something like that could be added to the response. This would enable users of the library to verify the amount of retries done and to show that in in applications potentially.

dustinsmith1024 commented 2 weeks ago

This would be nice to add. I wouldn't mind a hook to just make my own function to run though. Then we could add logging, metics, etc on retries.