maxRedirects property

int maxRedirects
final

If followRedirects is true, sets the maximum number of redirects before the request is terminated and an exception is thrown.

If followRedirects is false, this has no effect. On Web, this has no effect, except in the case followRedirects = true and maxRedirects = 0 which causes an error to be thrown if any redirect occurs.

Implementation

final int maxRedirects;