From 90888661ef5ed262d19b2c082a54355c3d7e6599 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 8 Sep 2019 23:57:27 +0700 Subject: [PATCH] Document that `retry` option doesn't work with streams --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index b8b8918c7..92b8ba140 100644 --- a/readme.md +++ b/readme.md @@ -356,6 +356,8 @@ Default: An object representing `limit`, `calculateDelay`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for maximum retry count, retry handler, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes. +**Note:** When using streams, this option is ignored. + If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`.
If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request.