zkat / make-fetch-happen

Get in loser, we're making requests!
Other
384 stars 27 forks source link

Add `options.onRetry` #48

Closed SimenB closed 6 years ago

SimenB commented 7 years ago

Fixes #21

I've only tested one of the callbacks, is that enough? Original ticket asked for "will be called, if present, with the error as the argument", I only have an error in a single case, though. Thoughts? Create an error when we retry because of http status?