5.2.0
- 54bd6f5 default intervals between delays decreased - now they are around 1s, 2s, 4s, 8s, etc...
- a10a99e
retries
option accepts backoff function, for example you can:
// Constant delay of 10ms for 5 iterations
got('google.com', {
retries: iter => iter < 5 && 10
});
// Infinity retries with constant delay
got('google.com', {
retries: () => 10
});