DO NOT use this module if you are piping
If you are listening to
data events to buffer, beware that you must reset everything when a
This is why
pipping is not supported.
$ npm install request-replay
var fs = ;var request = ;var replay = ;// Note that the options argument is optional// Accepts the same options the retry module does and an additional// errorCodes array with error codes that cause the replay to happen// Check out the code to see which is the default value for it;
Note that the default retry options are modified to be more appropriate for requests:
retries: The maximum amount of times to retry the operation. Default is
factor: The exponential factor to use. Default is
minTimeout: The amount of time before starting the first retry. Default is
maxTimeout: The maximum amount of time between two retries. Default is
randomize: Randomizes the timeouts by multiplying with a factor between
2. Default is
Released under the MIT License.