dispatch:retry-http

v0.1.4Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

dispatch:retry-http Build Status

A simple wrapper of http that supports retry options.

RetryHttp.call('GET', 'http://myurl');

RetryHttp.get('http://myurl', {
  retry: {
    baseTimeout: 100,
    maxTimeout: 5000,
    shouldRetry: function (err, res, callback) {
      callback(null, true);
    },
    times: 5
  }
});