TOO_MANY_REDIRECTS property
A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently 16
on iOS).
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.ERROR_REDIRECT_LOOP)
- iOS (Official API - URLError.httpTooManyRedirects)
- MacOS (Official API - URLError.httpTooManyRedirects)
Implementation
static final TOO_MANY_REDIRECTS =
WebResourceErrorType._internalMultiPlatform('TOO_MANY_REDIRECTS', () {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return -9;
case TargetPlatform.iOS:
return -1007;
case TargetPlatform.macOS:
return -1007;
default:
break;
}
return null;
});