From f276edf8f17fd868558e3d03fcb0c255a4473160 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 16 Feb 2023 17:08:16 -0800 Subject: [PATCH] cherry-pick(#20968): docs: Route.fetch.maxRedirects in java (#20970) --- docs/src/api/class-route.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md index 31bf5a675a..4f1a00757e 100644 --- a/docs/src/api/class-route.md +++ b/docs/src/api/class-route.md @@ -496,8 +496,12 @@ Note that [`option: headers`] option will apply to the fetched request as well a If set changes the request URL. New URL must have same protocol as original one. -### option: Route.fetch.maxRedirects = %%-js-python-csharp-fetch-option-maxredirects-%% +### option: Route.fetch.maxRedirects * since: v1.31 +- `maxRedirects` <[int]> + +Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded. +Defaults to `20`. Pass `0` to not follow redirects. ### option: Route.fetch.method * since: v1.29