Make needle retry automatically on failed requests.
Combines needle with retry to account for unstable webservers. Thus, needle-retry will retry for a certain number of times (default 5) before giving up. Currently implements
get. Tests currently only cover
GET requests but everything should work too, as this is basically just a wrapper.
npm install needle-retry
Options can be passed in as the second parameter, as an object with a property
needle for needle options and a property
retry for retry options. This module has a single option,
fullDocument that will make it retry if a full HTML document is not received. Defaults to
false. Default options:
var options =needleRetry:fullDocument: falseneedle:follow_max: 20retry:retries: 5
var needle = ;needle;
var needle = ;var options =needleRetry:fullDocument: falseneedle:follow_max: 20retry:retries: 5var data =foo: 'bar'needle;