followRedirects property
Whether to automatically follow redirects.
Defaults to true
. The behavior when false
depends on the platform:
-
On Web, this will result in an empty AWSStreamedHttpResponse being returned, with no headers or body available. This is due to the Fetch Standard disallowing anything but transparent follows.
-
On VM, this follows the semantics of HttpClientRequest.followRedirects from
dart:io
.
Implementation
// ignore: comment_references
/// - On VM, this follows the semantics of [HttpClientRequest.followRedirects]
/// from `dart:io`.
final bool followRedirects;