0.1.1 • Published 6 years ago
willful v0.1.1
willful
A Fetch wrapper with retry strategies
Installation
npm install willful --save
Example
const willful = require('willful');
const reponse = await willful(url, {
maxRetry: 3,
retryDelay: 1000,
retryStrategy: 'backoff'
});
Second parameter is optional. Default values are:
- maxRetry: 3
- retryDelay: 1000
- retryStrategy: 'default'
The default retryStrategy
retry the http call after retryDelay
millisecond