@@ -64,6 +64,9 @@ export 'src/server_errors_test.dart' show testServerErrors;
64
64
/// If [canReceiveSetCookieHeaders] is `false` then tests that require that
65
65
/// "set-cookie" headers be received by the client will not be run.
66
66
///
67
+ /// If [supportsFoldedHeaders] is `false` then the tests that assume that the
68
+ /// [Client] can parse folded headers will be skipped.
69
+ ///
67
70
/// The tests are run against a series of HTTP servers that are started by the
68
71
/// tests. If the tests are run in the browser, then the test servers are
69
72
/// started in another process. Otherwise, the test servers are run in-process.
@@ -74,6 +77,7 @@ void testAll(
74
77
bool redirectAlwaysAllowed = false ,
75
78
bool canWorkInIsolates = true ,
76
79
bool preservesMethodCase = false ,
80
+ bool supportsFoldedHeaders = true ,
77
81
bool canSendCookieHeaders = false ,
78
82
bool canReceiveSetCookieHeaders = false ,
79
83
}) {
@@ -86,7 +90,8 @@ void testAll(
86
90
canStreamResponseBody: canStreamResponseBody);
87
91
testRequestHeaders (clientFactory ());
88
92
testRequestMethods (clientFactory (), preservesMethodCase: preservesMethodCase);
89
- testResponseHeaders (clientFactory ());
93
+ testResponseHeaders (clientFactory (),
94
+ supportsFoldedHeaders: supportsFoldedHeaders);
90
95
testResponseStatusLine (clientFactory ());
91
96
testRedirect (clientFactory (), redirectAlwaysAllowed: redirectAlwaysAllowed);
92
97
testServerErrors (clientFactory ());
0 commit comments