You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Whether to retain the HTTP method and body when following a 301 redirect.
1281
+
/// Whether to retain the HTTP method and body when following a 301 redirect on a POST request.
1282
1282
/// This should be false as per the fetch spec, but may be true according to RFC 9110.
1283
+
/// This does not affect non-POST requests.
1283
1284
publicvarretainHTTPMethodAndBodyOn301:Bool
1284
-
/// Whether to retain the HTTP method and body when following a 302 redirect.
1285
+
/// Whether to retain the HTTP method and body when following a 302 redirect on a POST request.
1285
1286
/// This should be false as per the fetch spec, but may be true according to RFC 9110.
1287
+
/// This does not affect non-POST requests.
1286
1288
publicvarretainHTTPMethodAndBodyOn302:Bool
1287
1289
1288
1290
/// Create a new ``FollowConfiguration``
1289
1291
/// - Parameters:
1290
1292
/// - max: The maximum number of allowed redirects.
1291
1293
/// - allowCycles: Whether cycles are allowed.
1292
-
/// - retainHTTPMethodAndBodyOn301: Whether to retain the HTTP method and body when following a 301 redirect. This should be false as per the fetch spec, but may be true according to RFC 9110.
1293
-
/// - retainHTTPMethodAndBodyOn302: Whether to retain the HTTP method and body when following a 302 redirect. This should be false as per the fetch spec, but may be true according to RFC 9110.
1294
+
/// - retainHTTPMethodAndBodyOn301: Whether to retain the HTTP method and body when following a 301 redirect on a POST request. This should be false as per the fetch spec, but may be true according to RFC 9110. This does not affect non-POST requests.
1295
+
/// - retainHTTPMethodAndBodyOn302: Whether to retain the HTTP method and body when following a 302 redirect on a POST request. This should be false as per the fetch spec, but may be true according to RFC 9110. This does not affect non-POST requests.
/// - `maxRedirects` (int, optional, default: 5): Maximum allowed redirects when mode is "follow".
68
68
/// - `allowCycles` (bool, optional, default: false): Allow cyclic redirects when mode is "follow".
69
-
/// - `retainHTTPMethodAndBodyOn301` (bool, optional, default: false): Retain the original HTTP method and body on 301 redirect when mode is "follow". This is contrary to the fetch specification, but is allowed by RFC 9110.
70
-
/// - `retainHTTPMethodAndBodyOn302` (bool, optional, default: false): Retain the original HTTP method and body on 302 redirect when mode is "follow". This is contrary to the fetch specification, but is allowed by RFC 9110.
69
+
/// - `retainHTTPMethodAndBodyOn301` (bool, optional, default: false): Whether to retain the HTTP method and body when following a 301 redirect on a POST request. This should be false as per the fetch spec, but may be true according to RFC 9110. This does not affect non-POST requests.
70
+
/// - `retainHTTPMethodAndBodyOn302` (bool, optional, default: false): Whether to retain the HTTP method and body when following a 302 redirect on a POST request. This should be false as per the fetch spec, but may be true according to RFC 9110. This does not affect non-POST requests.
71
71
///
72
72
/// - Throws: `HTTPClientError.invalidRedirectConfiguration` if mode is specified but invalid.
0 commit comments