needle-retries
Based on needle and retry, it allows to retry a fail attempt.
Installation
npm install needle-retries
Getting started
Needle is a dependency of needle-retries so that by using this module, this should still work with the latest version of Needle.
var _needle = ;var needle = _needle; needle;
It's working with Promises too:
var _needle = ;var Promise = ;var needle = Promise; needle;
Have a look at the respective doc pages for needle and retry for a list of available options.
Limitations
It's not working with Streams, Pipes, ... and might never work. While a stream starts to send data at the beginning, a stream may fail also at any time, so that when it fails a full new request should be restarted. Obviously, this is not possible with this module.
Therefore, for Streams and Pipes, please use directly Needle (in the example above, you can access Needle through _needle
).