dart / 2 / dart-io / httpclientrequest / maxredirects.html

maxRedirects property

int maxRedirects
read / write

Set this property to the maximum number of redirects to follow when followRedirects is true. If this number is exceeded an error event will be added with a RedirectException.

The default value is 5.

Implementation

int maxRedirects = 5;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-io/HttpClientRequest/maxRedirects.html