diff --git a/LibTest/io/HttpClient/addCredentials_A01_t01.dart b/LibTest/io/HttpClient/addCredentials_A01_t01.dart index ac4f5a2333..8591f5da7f 100644 --- a/LibTest/io/HttpClient/addCredentials_A01_t01.dart +++ b/LibTest/io/HttpClient/addCredentials_A01_t01.dart @@ -43,7 +43,7 @@ test() async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/authenticateProxy_A01_t01.dart b/LibTest/io/HttpClient/authenticateProxy_A01_t01.dart index e57aa9be27..9aa78deb61 100644 --- a/LibTest/io/HttpClient/authenticateProxy_A01_t01.dart +++ b/LibTest/io/HttpClient/authenticateProxy_A01_t01.dart @@ -75,7 +75,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/authenticateProxy_A01_t02.dart b/LibTest/io/HttpClient/authenticateProxy_A01_t02.dart index 11083a6c29..b864de6143 100644 --- a/LibTest/io/HttpClient/authenticateProxy_A01_t02.dart +++ b/LibTest/io/HttpClient/authenticateProxy_A01_t02.dart @@ -79,7 +79,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/authenticateProxy_A02_t01.dart b/LibTest/io/HttpClient/authenticateProxy_A02_t01.dart index 891ad8fb14..a1d59249fd 100644 --- a/LibTest/io/HttpClient/authenticateProxy_A02_t01.dart +++ b/LibTest/io/HttpClient/authenticateProxy_A02_t01.dart @@ -73,7 +73,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/authenticate_A01_t01.dart b/LibTest/io/HttpClient/authenticate_A01_t01.dart index c669f8e9a4..dce1897cd9 100644 --- a/LibTest/io/HttpClient/authenticate_A01_t01.dart +++ b/LibTest/io/HttpClient/authenticate_A01_t01.dart @@ -76,7 +76,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/authenticate_A01_t02.dart b/LibTest/io/HttpClient/authenticate_A01_t02.dart index 9cd35ddb37..0bfadd7b11 100644 --- a/LibTest/io/HttpClient/authenticate_A01_t02.dart +++ b/LibTest/io/HttpClient/authenticate_A01_t02.dart @@ -69,7 +69,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/authenticate_A02_t01.dart b/LibTest/io/HttpClient/authenticate_A02_t01.dart index 5706a8133d..49a1dcdd97 100644 --- a/LibTest/io/HttpClient/authenticate_A02_t01.dart +++ b/LibTest/io/HttpClient/authenticate_A02_t01.dart @@ -64,7 +64,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/autoUncompress_A02_t01.dart b/LibTest/io/HttpClient/autoUncompress_A02_t01.dart index c0b2e459fb..21878f6abf 100644 --- a/LibTest/io/HttpClient/autoUncompress_A02_t01.dart +++ b/LibTest/io/HttpClient/autoUncompress_A02_t01.dart @@ -58,7 +58,7 @@ test() async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClient/autoUncompress_A02_t02.dart b/LibTest/io/HttpClient/autoUncompress_A02_t02.dart index 9626225c4a..441c971b68 100644 --- a/LibTest/io/HttpClient/autoUncompress_A02_t02.dart +++ b/LibTest/io/HttpClient/autoUncompress_A02_t02.dart @@ -58,7 +58,7 @@ test() async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(gzip.decoder).transform(utf8.decoder).listen((content) { + response.cast>().transform(gzip.decoder).transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClient/autoUncompress_A03_t01.dart b/LibTest/io/HttpClient/autoUncompress_A03_t01.dart index 35e3d7b843..0d9b27ea60 100644 --- a/LibTest/io/HttpClient/autoUncompress_A03_t01.dart +++ b/LibTest/io/HttpClient/autoUncompress_A03_t01.dart @@ -62,7 +62,7 @@ test() async { Expect.listEquals([helloWorld.length.toString()], response.headers[HttpHeaders.contentLengthHeader]); Expect.listEquals(["utf-8"], response.headers[HttpHeaders.contentEncodingHeader]); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClient/autoUncompress_A04_t01.dart b/LibTest/io/HttpClient/autoUncompress_A04_t01.dart index 595f11b2bf..35de263c27 100644 --- a/LibTest/io/HttpClient/autoUncompress_A04_t01.dart +++ b/LibTest/io/HttpClient/autoUncompress_A04_t01.dart @@ -58,7 +58,7 @@ test() async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); Expect.equals("gzip", response.headers.value(HttpHeaders.contentEncodingHeader)); asyncEnd(); diff --git a/LibTest/io/HttpClient/autoUncompress_A04_t02.dart b/LibTest/io/HttpClient/autoUncompress_A04_t02.dart index 0bb5af07aa..923413b24e 100644 --- a/LibTest/io/HttpClient/autoUncompress_A04_t02.dart +++ b/LibTest/io/HttpClient/autoUncompress_A04_t02.dart @@ -62,7 +62,7 @@ test() async { }).then((HttpClientResponse response) { // Server sends uncompressed data. autoUncompress sets to true but // uncompression should not be performed - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClient/autoUncompress_A04_t03.dart b/LibTest/io/HttpClient/autoUncompress_A04_t03.dart index 0b803bf316..30d6f625ae 100644 --- a/LibTest/io/HttpClient/autoUncompress_A04_t03.dart +++ b/LibTest/io/HttpClient/autoUncompress_A04_t03.dart @@ -63,7 +63,7 @@ test() async { // Server sends uncompressed data but on client autoUncompress sets to true // and Content-Encoding header value is gzip so we are trying to uncompress // not compressed data - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }, onError: (_) { asyncEnd(); }); diff --git a/LibTest/io/HttpClient/close_A01_t01.dart b/LibTest/io/HttpClient/close_A01_t01.dart index 323d0844e2..aa6962b23b 100644 --- a/LibTest/io/HttpClient/close_A01_t01.dart +++ b/LibTest/io/HttpClient/close_A01_t01.dart @@ -41,7 +41,7 @@ test() async { client.getUrl(Uri.parse("http://${localhost}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); client.close(force: true); diff --git a/LibTest/io/HttpClient/deleteUrl_A01_t01.dart b/LibTest/io/HttpClient/deleteUrl_A01_t01.dart index 5a419c09e8..725e0aa8d2 100644 --- a/LibTest/io/HttpClient/deleteUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/deleteUrl_A01_t01.dart @@ -38,7 +38,7 @@ test() async { client.deleteUrl(Uri.parse("http://${localhost}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/deleteUrl_A01_t02.dart b/LibTest/io/HttpClient/deleteUrl_A01_t02.dart index 5dfbf21a3e..a464c85796 100644 --- a/LibTest/io/HttpClient/deleteUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/deleteUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/delete_A01_t01.dart b/LibTest/io/HttpClient/delete_A01_t01.dart index 5c32c93ac8..81950d0801 100644 --- a/LibTest/io/HttpClient/delete_A01_t01.dart +++ b/LibTest/io/HttpClient/delete_A01_t01.dart @@ -41,7 +41,7 @@ test() async { client.delete(localhost, server.port, "/xxx") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/delete_A01_t02.dart b/LibTest/io/HttpClient/delete_A01_t02.dart index a58a77402b..312b8b3bd5 100644 --- a/LibTest/io/HttpClient/delete_A01_t02.dart +++ b/LibTest/io/HttpClient/delete_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.delete(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A01_t01.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A01_t01.dart index 26d2bede3e..ea04f0646d 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A01_t01.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A01_t01.dart @@ -75,7 +75,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t01.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t01.dart index 5036d4d0d3..c2ac3a6b72 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t01.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t01.dart @@ -80,7 +80,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t02.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t02.dart index 6ff2eb3e20..3fc26384b6 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t02.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t02.dart @@ -86,7 +86,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t03.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t03.dart index 113b7e405b..2a217e8254 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t03.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t03.dart @@ -86,7 +86,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t04.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t04.dart index 43945c943a..150124b1ea 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t04.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t04.dart @@ -87,7 +87,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t05.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t05.dart index 8089c59977..b38d3d6a1b 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t05.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A02_t05.dart @@ -87,7 +87,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A03_t01.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A03_t01.dart index fe2f0de862..709706dc5f 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A03_t01.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A03_t01.dart @@ -80,7 +80,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxyFromEnvironment_A04_t01.dart b/LibTest/io/HttpClient/findProxyFromEnvironment_A04_t01.dart index cc170bf1c1..8d31fe3610 100644 --- a/LibTest/io/HttpClient/findProxyFromEnvironment_A04_t01.dart +++ b/LibTest/io/HttpClient/findProxyFromEnvironment_A04_t01.dart @@ -90,7 +90,7 @@ test() async { client.get(localhost, server.port, "") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(hello, content); }); }); diff --git a/LibTest/io/HttpClient/findProxy_A01_t01.dart b/LibTest/io/HttpClient/findProxy_A01_t01.dart index b1e8f7f53d..feb6507b04 100644 --- a/LibTest/io/HttpClient/findProxy_A01_t01.dart +++ b/LibTest/io/HttpClient/findProxy_A01_t01.dart @@ -79,7 +79,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/findProxy_A01_t02.dart b/LibTest/io/HttpClient/findProxy_A01_t02.dart index 53442d9477..0713b4aa0b 100644 --- a/LibTest/io/HttpClient/findProxy_A01_t02.dart +++ b/LibTest/io/HttpClient/findProxy_A01_t02.dart @@ -79,7 +79,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/findProxy_A02_t01.dart b/LibTest/io/HttpClient/findProxy_A02_t01.dart index 95486fa380..cdc396c786 100644 --- a/LibTest/io/HttpClient/findProxy_A02_t01.dart +++ b/LibTest/io/HttpClient/findProxy_A02_t01.dart @@ -69,7 +69,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/findProxy_A02_t02.dart b/LibTest/io/HttpClient/findProxy_A02_t02.dart index 6481994cf8..c0e17889ed 100644 --- a/LibTest/io/HttpClient/findProxy_A02_t02.dart +++ b/LibTest/io/HttpClient/findProxy_A02_t02.dart @@ -69,7 +69,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/findProxy_A03_t01.dart b/LibTest/io/HttpClient/findProxy_A03_t01.dart index 5afaaf4ea3..e928d6aa9a 100644 --- a/LibTest/io/HttpClient/findProxy_A03_t01.dart +++ b/LibTest/io/HttpClient/findProxy_A03_t01.dart @@ -88,7 +88,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/findProxy_A03_t02.dart b/LibTest/io/HttpClient/findProxy_A03_t02.dart index 24bff5de5e..e57672a149 100644 --- a/LibTest/io/HttpClient/findProxy_A03_t02.dart +++ b/LibTest/io/HttpClient/findProxy_A03_t02.dart @@ -91,7 +91,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClient/getUrl_A01_t01.dart b/LibTest/io/HttpClient/getUrl_A01_t01.dart index 46c03d18e4..c0e78a0978 100644 --- a/LibTest/io/HttpClient/getUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/getUrl_A01_t01.dart @@ -40,7 +40,7 @@ test() async { Expect.equals("GET", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/getUrl_A01_t02.dart b/LibTest/io/HttpClient/getUrl_A01_t02.dart index c9a834a04c..8d81b50b83 100644 --- a/LibTest/io/HttpClient/getUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/getUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/get_A01_t01.dart b/LibTest/io/HttpClient/get_A01_t01.dart index 7d4acdf470..192e848c39 100644 --- a/LibTest/io/HttpClient/get_A01_t01.dart +++ b/LibTest/io/HttpClient/get_A01_t01.dart @@ -43,7 +43,7 @@ test() async { Expect.equals("GET", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/get_A01_t02.dart b/LibTest/io/HttpClient/get_A01_t02.dart index d0a670fab9..e74383e110 100644 --- a/LibTest/io/HttpClient/get_A01_t02.dart +++ b/LibTest/io/HttpClient/get_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.get(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/headUrl_A01_t01.dart b/LibTest/io/HttpClient/headUrl_A01_t01.dart index 1890679f52..0c29169401 100644 --- a/LibTest/io/HttpClient/headUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/headUrl_A01_t01.dart @@ -40,7 +40,7 @@ test() async { Expect.equals("HEAD", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/headUrl_A01_t02.dart b/LibTest/io/HttpClient/headUrl_A01_t02.dart index b649d5ed0f..eb43e89166 100644 --- a/LibTest/io/HttpClient/headUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/headUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/head_A01_t01.dart b/LibTest/io/HttpClient/head_A01_t01.dart index 4b4cafa1a1..cafa247a61 100644 --- a/LibTest/io/HttpClient/head_A01_t01.dart +++ b/LibTest/io/HttpClient/head_A01_t01.dart @@ -43,7 +43,7 @@ test() async { Expect.equals("HEAD", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/head_A01_t02.dart b/LibTest/io/HttpClient/head_A01_t02.dart index b3d574a261..dcfc4eae48 100644 --- a/LibTest/io/HttpClient/head_A01_t02.dart +++ b/LibTest/io/HttpClient/head_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.head(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/idleTimeout_A02_t01.dart b/LibTest/io/HttpClient/idleTimeout_A02_t01.dart index be9cdb96b0..ff9a06eeff 100644 --- a/LibTest/io/HttpClient/idleTimeout_A02_t01.dart +++ b/LibTest/io/HttpClient/idleTimeout_A02_t01.dart @@ -41,7 +41,7 @@ test() async { request.headers.set(HttpHeaders.connectionHeader, "keep-alive"); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld + helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/openUrl_A01_t01.dart b/LibTest/io/HttpClient/openUrl_A01_t01.dart index c0a065d9d2..7ce31bfbd2 100644 --- a/LibTest/io/HttpClient/openUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/openUrl_A01_t01.dart @@ -48,7 +48,7 @@ test() async { Expect.equals("GET", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/openUrl_A01_t02.dart b/LibTest/io/HttpClient/openUrl_A01_t02.dart index dd6113b394..12126543db 100644 --- a/LibTest/io/HttpClient/openUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/openUrl_A01_t02.dart @@ -47,7 +47,7 @@ test() async { Uri.parse("http://${localhost}:${server.port}/y/xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/openUrl_A01_t03.dart b/LibTest/io/HttpClient/openUrl_A01_t03.dart index 9180429928..b1105a78ef 100644 --- a/LibTest/io/HttpClient/openUrl_A01_t03.dart +++ b/LibTest/io/HttpClient/openUrl_A01_t03.dart @@ -47,7 +47,7 @@ test() async { Uri.parse("http://${localhost}:${server.port}/Xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/openUrl_A01_t04.dart b/LibTest/io/HttpClient/openUrl_A01_t04.dart index 0a50486b43..f8136a7338 100644 --- a/LibTest/io/HttpClient/openUrl_A01_t04.dart +++ b/LibTest/io/HttpClient/openUrl_A01_t04.dart @@ -51,7 +51,7 @@ test() async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/openUrl_A01_t05.dart b/LibTest/io/HttpClient/openUrl_A01_t05.dart index 3185109650..ce4a2f271f 100644 --- a/LibTest/io/HttpClient/openUrl_A01_t05.dart +++ b/LibTest/io/HttpClient/openUrl_A01_t05.dart @@ -54,7 +54,7 @@ test() async { request.headers.port = 111; return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/open_A01_t01.dart b/LibTest/io/HttpClient/open_A01_t01.dart index 7d669eb20a..420931435b 100644 --- a/LibTest/io/HttpClient/open_A01_t01.dart +++ b/LibTest/io/HttpClient/open_A01_t01.dart @@ -52,7 +52,7 @@ test() async { Expect.equals("GET", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/open_A01_t02.dart b/LibTest/io/HttpClient/open_A01_t02.dart index 5d953ac264..fa9fc1e7a4 100644 --- a/LibTest/io/HttpClient/open_A01_t02.dart +++ b/LibTest/io/HttpClient/open_A01_t02.dart @@ -50,7 +50,7 @@ test() async { client.open("GET", localhost, server.port, "y/xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/open_A01_t03.dart b/LibTest/io/HttpClient/open_A01_t03.dart index 4386e479ba..d1a26960e4 100644 --- a/LibTest/io/HttpClient/open_A01_t03.dart +++ b/LibTest/io/HttpClient/open_A01_t03.dart @@ -50,7 +50,7 @@ test() async { client.open("get", localhost, server.port, "/Xxx") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/open_A01_t04.dart b/LibTest/io/HttpClient/open_A01_t04.dart index bab0c25d35..043c0f81cc 100644 --- a/LibTest/io/HttpClient/open_A01_t04.dart +++ b/LibTest/io/HttpClient/open_A01_t04.dart @@ -54,7 +54,7 @@ test() async { .then((HttpClientRequest request){ return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/open_A01_t05.dart b/LibTest/io/HttpClient/open_A01_t05.dart index 7f8ad508a8..38eb306d11 100644 --- a/LibTest/io/HttpClient/open_A01_t05.dart +++ b/LibTest/io/HttpClient/open_A01_t05.dart @@ -57,7 +57,7 @@ test() async { request.headers.port = 111; return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/patchUrl_A01_t01.dart b/LibTest/io/HttpClient/patchUrl_A01_t01.dart index 3c4a3406cc..8ebc1e4379 100644 --- a/LibTest/io/HttpClient/patchUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/patchUrl_A01_t01.dart @@ -40,7 +40,7 @@ test() async { Expect.equals("PATCH", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/patchUrl_A01_t02.dart b/LibTest/io/HttpClient/patchUrl_A01_t02.dart index 57284b4227..1f0fdaf017 100644 --- a/LibTest/io/HttpClient/patchUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/patchUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/Xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/patch_A01_t01.dart b/LibTest/io/HttpClient/patch_A01_t01.dart index f87da84eab..bbeabff19e 100644 --- a/LibTest/io/HttpClient/patch_A01_t01.dart +++ b/LibTest/io/HttpClient/patch_A01_t01.dart @@ -43,7 +43,7 @@ test() async { Expect.equals("PATCH", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/patch_A01_t02.dart b/LibTest/io/HttpClient/patch_A01_t02.dart index 1c354f24dc..4600727daa 100644 --- a/LibTest/io/HttpClient/patch_A01_t02.dart +++ b/LibTest/io/HttpClient/patch_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.patch(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/postUrl_A01_t01.dart b/LibTest/io/HttpClient/postUrl_A01_t01.dart index 84fd076c67..317dd9ba4c 100644 --- a/LibTest/io/HttpClient/postUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/postUrl_A01_t01.dart @@ -40,7 +40,7 @@ test() async { Expect.equals("POST", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/postUrl_A01_t02.dart b/LibTest/io/HttpClient/postUrl_A01_t02.dart index 6b766a1691..7893364114 100644 --- a/LibTest/io/HttpClient/postUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/postUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/Xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/post_A01_t01.dart b/LibTest/io/HttpClient/post_A01_t01.dart index e2bfc0d4e9..a6be1a70fa 100644 --- a/LibTest/io/HttpClient/post_A01_t01.dart +++ b/LibTest/io/HttpClient/post_A01_t01.dart @@ -43,7 +43,7 @@ test() async { Expect.equals("POST", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/post_A01_t02.dart b/LibTest/io/HttpClient/post_A01_t02.dart index aaf2b944c0..3b2bb431f8 100644 --- a/LibTest/io/HttpClient/post_A01_t02.dart +++ b/LibTest/io/HttpClient/post_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.post(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/putUrl_A01_t01.dart b/LibTest/io/HttpClient/putUrl_A01_t01.dart index fb9225c11d..b6eaa74b73 100644 --- a/LibTest/io/HttpClient/putUrl_A01_t01.dart +++ b/LibTest/io/HttpClient/putUrl_A01_t01.dart @@ -40,7 +40,7 @@ test() async { Expect.equals("PUT", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/putUrl_A01_t02.dart b/LibTest/io/HttpClient/putUrl_A01_t02.dart index 0a37391440..6df78633ac 100644 --- a/LibTest/io/HttpClient/putUrl_A01_t02.dart +++ b/LibTest/io/HttpClient/putUrl_A01_t02.dart @@ -39,7 +39,7 @@ test() async { .parse("http://${localhost}:${server.port}/y/Xxx?q=12&i=j#fragment")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/put_A01_t01.dart b/LibTest/io/HttpClient/put_A01_t01.dart index fdfc1a150c..4011593a9b 100644 --- a/LibTest/io/HttpClient/put_A01_t01.dart +++ b/LibTest/io/HttpClient/put_A01_t01.dart @@ -43,7 +43,7 @@ test() async { Expect.equals("PUT", request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/put_A01_t02.dart b/LibTest/io/HttpClient/put_A01_t02.dart index c52b373cf6..835becd12c 100644 --- a/LibTest/io/HttpClient/put_A01_t02.dart +++ b/LibTest/io/HttpClient/put_A01_t02.dart @@ -41,7 +41,7 @@ test() async { client.put(localhost, server.port, "y/Xxx?q=12&i=j#fragment") .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClient/userAgent_A01_t01.dart b/LibTest/io/HttpClient/userAgent_A01_t01.dart index 137544be82..d9e9e6d7d0 100644 --- a/LibTest/io/HttpClient/userAgent_A01_t01.dart +++ b/LibTest/io/HttpClient/userAgent_A01_t01.dart @@ -46,7 +46,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClient/userAgent_A02_t01.dart b/LibTest/io/HttpClient/userAgent_A02_t01.dart index 8bad4c252b..59cb0b6780 100644 --- a/LibTest/io/HttpClient/userAgent_A02_t01.dart +++ b/LibTest/io/HttpClient/userAgent_A02_t01.dart @@ -43,7 +43,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpClientBasicCredentials/HttpClientBasicCredentials_A01_t01.dart b/LibTest/io/HttpClientBasicCredentials/HttpClientBasicCredentials_A01_t01.dart index 5140901af0..149215dcd6 100644 --- a/LibTest/io/HttpClientBasicCredentials/HttpClientBasicCredentials_A01_t01.dart +++ b/LibTest/io/HttpClientBasicCredentials/HttpClientBasicCredentials_A01_t01.dart @@ -50,7 +50,7 @@ test() async { "http://${InternetAddress.loopbackIPv4.address}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientDigestCredentials/HttpClientDigestCredentials_A01_t01.dart b/LibTest/io/HttpClientDigestCredentials/HttpClientDigestCredentials_A01_t01.dart index 1865cdb812..c250e3cb28 100644 --- a/LibTest/io/HttpClientDigestCredentials/HttpClientDigestCredentials_A01_t01.dart +++ b/LibTest/io/HttpClientDigestCredentials/HttpClientDigestCredentials_A01_t01.dart @@ -60,7 +60,7 @@ test() async { .getUrl(Uri.parse("http://${localhost}:${server.port}/xxx")) .then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientRequest/addError_A02_t01.dart b/LibTest/io/HttpClientRequest/addError_A02_t01.dart index b065c4a2ed..604b2d4563 100644 --- a/LibTest/io/HttpClientRequest/addError_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/addError_A02_t01.dart @@ -54,7 +54,7 @@ test(String method) async { request.addError("Error"); }); f.then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/addStream_A01_t01.dart b/LibTest/io/HttpClientRequest/addStream_A01_t01.dart index b987e433c4..0e9c3c3451 100644 --- a/LibTest/io/HttpClientRequest/addStream_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/addStream_A01_t01.dart @@ -43,7 +43,7 @@ test(String method) async { request.addStream(stream).then((var request) { return request.close(); }).then((var response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/addStream_A02_t01.dart b/LibTest/io/HttpClientRequest/addStream_A02_t01.dart index b0e2904882..df9eb10de3 100644 --- a/LibTest/io/HttpClientRequest/addStream_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/addStream_A02_t01.dart @@ -45,7 +45,7 @@ test(String method) async { request.addStream(stream2).then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/addStream_A02_t02.dart b/LibTest/io/HttpClientRequest/addStream_A02_t02.dart index c17edd5d06..20e6066a02 100644 --- a/LibTest/io/HttpClientRequest/addStream_A02_t02.dart +++ b/LibTest/io/HttpClientRequest/addStream_A02_t02.dart @@ -49,7 +49,7 @@ test(String method) async { request.addStream(stream2); }); f.then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/add_A01_t01.dart b/LibTest/io/HttpClientRequest/add_A01_t01.dart index 8abcf1163d..01aca35eac 100644 --- a/LibTest/io/HttpClientRequest/add_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/add_A01_t01.dart @@ -46,7 +46,7 @@ test(String method) async { request.add([0, 1, 2, 3]); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/add_A01_t02.dart b/LibTest/io/HttpClientRequest/add_A01_t02.dart index dea4937fbe..9d34bdab96 100644 --- a/LibTest/io/HttpClientRequest/add_A01_t02.dart +++ b/LibTest/io/HttpClientRequest/add_A01_t02.dart @@ -49,7 +49,7 @@ test(String method) async { request.add(list); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/add_A02_t01.dart b/LibTest/io/HttpClientRequest/add_A02_t01.dart index 2081ade877..e51e02f195 100644 --- a/LibTest/io/HttpClientRequest/add_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/add_A02_t01.dart @@ -49,7 +49,7 @@ test(String method) async { request.add(list); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/add_A03_t01.dart b/LibTest/io/HttpClientRequest/add_A03_t01.dart index 184755d8cb..8643ab9a5b 100644 --- a/LibTest/io/HttpClientRequest/add_A03_t01.dart +++ b/LibTest/io/HttpClientRequest/add_A03_t01.dart @@ -55,7 +55,7 @@ test(String method) async { request.add([1]); }); f.then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/add_A03_t02.dart b/LibTest/io/HttpClientRequest/add_A03_t02.dart index d2144ff2a9..ceb856294a 100644 --- a/LibTest/io/HttpClientRequest/add_A03_t02.dart +++ b/LibTest/io/HttpClientRequest/add_A03_t02.dart @@ -52,7 +52,7 @@ test(String method) async { request.add([2, 6]); return request.close(); }).then((var response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/add_A04_t01.dart b/LibTest/io/HttpClientRequest/add_A04_t01.dart index 4c4f7d09dc..6a7867d1f8 100644 --- a/LibTest/io/HttpClientRequest/add_A04_t01.dart +++ b/LibTest/io/HttpClientRequest/add_A04_t01.dart @@ -48,7 +48,7 @@ test(String method) async { request.add([]); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/add_A05_t01.dart b/LibTest/io/HttpClientRequest/add_A05_t01.dart index 8ef9f2c192..4126bd0f44 100644 --- a/LibTest/io/HttpClientRequest/add_A05_t01.dart +++ b/LibTest/io/HttpClientRequest/add_A05_t01.dart @@ -51,7 +51,7 @@ test(String method) async { list[0] = 0; return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/bufferOutput_A01_t01.dart b/LibTest/io/HttpClientRequest/bufferOutput_A01_t01.dart index d623760c18..cc6c6aec44 100644 --- a/LibTest/io/HttpClientRequest/bufferOutput_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/bufferOutput_A01_t01.dart @@ -35,7 +35,7 @@ test() async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClientRequest/bufferOutput_A01_t02.dart b/LibTest/io/HttpClientRequest/bufferOutput_A01_t02.dart index e00fb839e5..ca4f4f130f 100644 --- a/LibTest/io/HttpClientRequest/bufferOutput_A01_t02.dart +++ b/LibTest/io/HttpClientRequest/bufferOutput_A01_t02.dart @@ -35,7 +35,7 @@ test() async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClientRequest/close_A01_t01.dart b/LibTest/io/HttpClientRequest/close_A01_t01.dart index e299c0384a..116b92f089 100644 --- a/LibTest/io/HttpClientRequest/close_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/close_A01_t01.dart @@ -30,7 +30,7 @@ test(String method) async { .then((HttpClientRequest request) { request.done.then((HttpClientResponse response) { asyncEnd(); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }); }); return request.close(); diff --git a/LibTest/io/HttpClientRequest/close_A02_t01.dart b/LibTest/io/HttpClientRequest/close_A02_t01.dart index 8ae870e0e2..d1c71b51d0 100644 --- a/LibTest/io/HttpClientRequest/close_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/close_A02_t01.dart @@ -34,7 +34,7 @@ test(String method) async { Expect.throws(() {request.writeln("Lily was here");}); return result; }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/connectionInfo_A01_t01.dart b/LibTest/io/HttpClientRequest/connectionInfo_A01_t01.dart index 02ee02cc75..5ff0270165 100644 --- a/LibTest/io/HttpClientRequest/connectionInfo_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/connectionInfo_A01_t01.dart @@ -36,7 +36,7 @@ test() async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClientRequest/contentLength_A01_t01.dart b/LibTest/io/HttpClientRequest/contentLength_A01_t01.dart index 4806aade88..a1cbd64c02 100644 --- a/LibTest/io/HttpClientRequest/contentLength_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/contentLength_A01_t01.dart @@ -36,7 +36,7 @@ test(String method, int expected) async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClientRequest/contentLength_A02_t01.dart b/LibTest/io/HttpClientRequest/contentLength_A02_t01.dart index 38c0366f00..7106966f9a 100644 --- a/LibTest/io/HttpClientRequest/contentLength_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/contentLength_A02_t01.dart @@ -38,7 +38,7 @@ test(method) async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); diff --git a/LibTest/io/HttpClientRequest/cookies_A01_t01.dart b/LibTest/io/HttpClientRequest/cookies_A01_t01.dart index 3718b8474a..094802ee54 100644 --- a/LibTest/io/HttpClientRequest/cookies_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/cookies_A01_t01.dart @@ -39,7 +39,7 @@ test(String method) async { return request.close(); }) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); }); }); @@ -52,4 +52,4 @@ main() { test("put"); test("post"); test("patch"); -} \ No newline at end of file +} diff --git a/LibTest/io/HttpClientRequest/done_A01_t01.dart b/LibTest/io/HttpClientRequest/done_A01_t01.dart index ca3f48e9a0..2a4df9f23f 100644 --- a/LibTest/io/HttpClientRequest/done_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/done_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { .then((HttpClientRequest request) { request.done.then((HttpClientResponse response) { asyncEnd(); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }); }); return request.close(); diff --git a/LibTest/io/HttpClientRequest/encoding_A01_t01.dart b/LibTest/io/HttpClientRequest/encoding_A01_t01.dart index 2a8e76a4ff..d8fe4ad37a 100644 --- a/LibTest/io/HttpClientRequest/encoding_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/encoding_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { Expect.equals("iso-8859-1", request.encoding.name); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/encoding_A02_t01.dart b/LibTest/io/HttpClientRequest/encoding_A02_t01.dart index b2452a38ff..2ebca3a972 100644 --- a/LibTest/io/HttpClientRequest/encoding_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/encoding_A02_t01.dart @@ -33,7 +33,7 @@ test(String method) async { Expect.throws(() {request.encoding = Encoding.getByName("UTF-8");}); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/encoding_A03_t01.dart b/LibTest/io/HttpClientRequest/encoding_A03_t01.dart index 93ed8d22e5..ca57e2dee6 100644 --- a/LibTest/io/HttpClientRequest/encoding_A03_t01.dart +++ b/LibTest/io/HttpClientRequest/encoding_A03_t01.dart @@ -36,7 +36,7 @@ test(String method) async { Expect.throws(() {request.writeln("Кириллица прекрасна");}); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/flush_A01_t01.dart b/LibTest/io/HttpClientRequest/flush_A01_t01.dart index 926f2dfe70..6a87e5a1a2 100644 --- a/LibTest/io/HttpClientRequest/flush_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/flush_A01_t01.dart @@ -41,7 +41,7 @@ test(String method) async { }); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }); }); } diff --git a/LibTest/io/HttpClientRequest/flush_A02_t01.dart b/LibTest/io/HttpClientRequest/flush_A02_t01.dart index c5c034b4b7..cd373d0d7a 100644 --- a/LibTest/io/HttpClientRequest/flush_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/flush_A02_t01.dart @@ -46,7 +46,7 @@ test(String method) async { request.addStream(stream).then((var request) { return request.close(); }).then((var response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); Expect.throws(() {request.flush();}); diff --git a/LibTest/io/HttpClientRequest/flush_A02_t02.dart b/LibTest/io/HttpClientRequest/flush_A02_t02.dart index 25554fa6a0..13cb61f5b1 100644 --- a/LibTest/io/HttpClientRequest/flush_A02_t02.dart +++ b/LibTest/io/HttpClientRequest/flush_A02_t02.dart @@ -47,7 +47,7 @@ test(String method) async { request.flush(); return request.close(); }).then((var response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); }); diff --git a/LibTest/io/HttpClientRequest/followRedirects_A01_t01.dart b/LibTest/io/HttpClientRequest/followRedirects_A01_t01.dart index 54040f4dea..83b0c5d176 100644 --- a/LibTest/io/HttpClientRequest/followRedirects_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/followRedirects_A01_t01.dart @@ -44,7 +44,7 @@ test(String method) async { Expect.isTrue(request.followRedirects); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/followRedirects_A02_t01.dart b/LibTest/io/HttpClientRequest/followRedirects_A02_t01.dart index f3daecf486..e65bdb6c5f 100644 --- a/LibTest/io/HttpClientRequest/followRedirects_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/followRedirects_A02_t01.dart @@ -57,7 +57,7 @@ test(String method, int statusCode) async { Expect.isTrue(request.followRedirects); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientRequest/followRedirects_A03_t01.dart b/LibTest/io/HttpClientRequest/followRedirects_A03_t01.dart index 8b54b2198d..884e04abd2 100644 --- a/LibTest/io/HttpClientRequest/followRedirects_A03_t01.dart +++ b/LibTest/io/HttpClientRequest/followRedirects_A03_t01.dart @@ -59,7 +59,7 @@ test(String method, int statusCode) async { Expect.isFalse(request.followRedirects); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientRequest/followRedirects_A04_t01.dart b/LibTest/io/HttpClientRequest/followRedirects_A04_t01.dart index 5bcbb7588f..babe07ebfb 100644 --- a/LibTest/io/HttpClientRequest/followRedirects_A04_t01.dart +++ b/LibTest/io/HttpClientRequest/followRedirects_A04_t01.dart @@ -57,7 +57,7 @@ test(String method, int statusCode) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientRequest/followRedirects_A05_t01.dart b/LibTest/io/HttpClientRequest/followRedirects_A05_t01.dart index 99f2231f3e..b6570c0419 100644 --- a/LibTest/io/HttpClientRequest/followRedirects_A05_t01.dart +++ b/LibTest/io/HttpClientRequest/followRedirects_A05_t01.dart @@ -56,7 +56,7 @@ test(String method, int statusCode) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientRequest/headers_A01_t01.dart b/LibTest/io/HttpClientRequest/headers_A01_t01.dart index 53feb337a4..fa8864b649 100644 --- a/LibTest/io/HttpClientRequest/headers_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/headers_A01_t01.dart @@ -39,7 +39,7 @@ test(String method, int contentLength) async { Expect.equals(contentLength, contentLength); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/headers_A02_t01.dart b/LibTest/io/HttpClientRequest/headers_A02_t01.dart index 8085d546bf..3e226987d1 100644 --- a/LibTest/io/HttpClientRequest/headers_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/headers_A02_t01.dart @@ -36,7 +36,7 @@ test(String method) async { request.headers.set(HttpHeaders.ageHeader, 21); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/headers_A03_t01.dart b/LibTest/io/HttpClientRequest/headers_A03_t01.dart index 56ee307bea..af2afccce6 100644 --- a/LibTest/io/HttpClientRequest/headers_A03_t01.dart +++ b/LibTest/io/HttpClientRequest/headers_A03_t01.dart @@ -39,7 +39,7 @@ test(String method) async { Expect.throws(() {request.headers.set(HttpHeaders.ageHeader, 21);}); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/headers_A03_t02.dart b/LibTest/io/HttpClientRequest/headers_A03_t02.dart index c011f1978d..f4f94930ed 100644 --- a/LibTest/io/HttpClientRequest/headers_A03_t02.dart +++ b/LibTest/io/HttpClientRequest/headers_A03_t02.dart @@ -37,7 +37,7 @@ test(String method) async { Expect.throws(() {request.headers.set(HttpHeaders.ageHeader, 21);}); return result; }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/maxRedirects_A01_t01.dart b/LibTest/io/HttpClientRequest/maxRedirects_A01_t01.dart index 72f8fb7fce..bff4eedbea 100644 --- a/LibTest/io/HttpClientRequest/maxRedirects_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/maxRedirects_A01_t01.dart @@ -36,7 +36,7 @@ test(String method) async { Expect.equals(5, request.maxRedirects); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/maxRedirects_A02_t01.dart b/LibTest/io/HttpClientRequest/maxRedirects_A02_t01.dart index bb72382c6c..b7376c5220 100644 --- a/LibTest/io/HttpClientRequest/maxRedirects_A02_t01.dart +++ b/LibTest/io/HttpClientRequest/maxRedirects_A02_t01.dart @@ -47,7 +47,7 @@ test(String method, int maxRedirects, int status) async { } return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/maxRedirects_A03_t01.dart b/LibTest/io/HttpClientRequest/maxRedirects_A03_t01.dart index a629d2381e..5d09ee0ab3 100644 --- a/LibTest/io/HttpClientRequest/maxRedirects_A03_t01.dart +++ b/LibTest/io/HttpClientRequest/maxRedirects_A03_t01.dart @@ -49,7 +49,7 @@ test(String method, int maxRedirects, int status) async { } return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/maxRedirects_A04_t01.dart b/LibTest/io/HttpClientRequest/maxRedirects_A04_t01.dart index 79225917e7..a113d302be 100644 --- a/LibTest/io/HttpClientRequest/maxRedirects_A04_t01.dart +++ b/LibTest/io/HttpClientRequest/maxRedirects_A04_t01.dart @@ -49,7 +49,7 @@ test(String method, int maxRedirects) async { } return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/method_A01_t01.dart b/LibTest/io/HttpClientRequest/method_A01_t01.dart index 03600c7da3..4750287b25 100644 --- a/LibTest/io/HttpClientRequest/method_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/method_A01_t01.dart @@ -31,7 +31,7 @@ test(String method) async { Expect.equals(method.toUpperCase(), request.method); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/persistentConnection_A01_t01.dart b/LibTest/io/HttpClientRequest/persistentConnection_A01_t01.dart index 41437df203..12a93b4e07 100644 --- a/LibTest/io/HttpClientRequest/persistentConnection_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/persistentConnection_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { Expect.isTrue(request.persistentConnection); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientRequest/uri_A01_t01.dart b/LibTest/io/HttpClientRequest/uri_A01_t01.dart index 08c6e866b0..ef7bdb3ab5 100644 --- a/LibTest/io/HttpClientRequest/uri_A01_t01.dart +++ b/LibTest/io/HttpClientRequest/uri_A01_t01.dart @@ -32,7 +32,7 @@ test(String method) async { request.uri.toString()); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/certificate_A01_t01.dart b/LibTest/io/HttpClientResponse/certificate_A01_t01.dart index 3c296c5d4b..34eb8d0d91 100644 --- a/LibTest/io/HttpClientResponse/certificate_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/certificate_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isNull(response.certificate); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/connectionInfo_A01_t01.dart b/LibTest/io/HttpClientResponse/connectionInfo_A01_t01.dart index 9ffea59b8b..564e85ea8b 100644 --- a/LibTest/io/HttpClientResponse/connectionInfo_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/connectionInfo_A01_t01.dart @@ -36,7 +36,7 @@ test(String method) async { Expect.isNotNull(response.connectionInfo); Expect.equals(localhost, response.connectionInfo.remoteAddress.address); Expect.equals(port, response.connectionInfo.remotePort); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A01_t01.dart b/LibTest/io/HttpClientResponse/contentLength_A01_t01.dart index 592ae9177c..035b555fb5 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A01_t01.dart @@ -38,7 +38,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(helloWorld.length, response.contentLength); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A01_t02.dart b/LibTest/io/HttpClientResponse/contentLength_A01_t02.dart index 866b10cbf7..f363e730aa 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A01_t02.dart @@ -36,7 +36,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(0, response.contentLength); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A02_t01.dart b/LibTest/io/HttpClientResponse/contentLength_A02_t01.dart index 21542e23e0..99e391d157 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A02_t01.dart @@ -37,7 +37,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(-1, response.contentLength); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A02_t02.dart b/LibTest/io/HttpClientResponse/contentLength_A02_t02.dart index 2897a4d4cb..96d0dbd377 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A02_t02.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A02_t02.dart @@ -35,7 +35,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(0, response.contentLength, method); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A03_t01.dart b/LibTest/io/HttpClientResponse/contentLength_A03_t01.dart index c93f979346..b7a531dc21 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A03_t01.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A03_t01.dart @@ -38,7 +38,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(-1, response.contentLength); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/contentLength_A04_t01.dart b/LibTest/io/HttpClientResponse/contentLength_A04_t01.dart index ee842b94a3..f41901056f 100644 --- a/LibTest/io/HttpClientResponse/contentLength_A04_t01.dart +++ b/LibTest/io/HttpClientResponse/contentLength_A04_t01.dart @@ -41,7 +41,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(-1, response.contentLength); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/detachSocket_A01_t01.dart b/LibTest/io/HttpClientResponse/detachSocket_A01_t01.dart index 643721708b..02fb3bdb5b 100644 --- a/LibTest/io/HttpClientResponse/detachSocket_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/detachSocket_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }); response.detachSocket().then((Socket socket) { diff --git a/LibTest/io/HttpClientResponse/isRedirect_A01_t02.dart b/LibTest/io/HttpClientResponse/isRedirect_A01_t02.dart index 3ce7970b59..fe79d5ffeb 100644 --- a/LibTest/io/HttpClientResponse/isRedirect_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/isRedirect_A01_t02.dart @@ -49,7 +49,7 @@ test(String method, int statusCode) async { }).then((HttpClientResponse response) { Expect.isTrue(response.isRedirect); asyncEnd(); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { }); }); diff --git a/LibTest/io/HttpClientResponse/persistentConnection_A01_t01.dart b/LibTest/io/HttpClientResponse/persistentConnection_A01_t01.dart index 39ea389e3c..24ed9203ef 100644 --- a/LibTest/io/HttpClientResponse/persistentConnection_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/persistentConnection_A01_t01.dart @@ -37,7 +37,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isTrue(response.persistentConnection); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/persistentConnection_A01_t02.dart b/LibTest/io/HttpClientResponse/persistentConnection_A01_t02.dart index 4aaf2998ce..377f76e06d 100644 --- a/LibTest/io/HttpClientResponse/persistentConnection_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/persistentConnection_A01_t02.dart @@ -37,7 +37,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isFalse(response.persistentConnection); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/persistentConnection_A02_t01.dart b/LibTest/io/HttpClientResponse/persistentConnection_A02_t01.dart index 96c49cce5d..56f122a8f3 100644 --- a/LibTest/io/HttpClientResponse/persistentConnection_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/persistentConnection_A02_t01.dart @@ -37,7 +37,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isTrue(response.persistentConnection); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/persistentConnection_A02_t02.dart b/LibTest/io/HttpClientResponse/persistentConnection_A02_t02.dart index 57613ea0d0..0999fe30ae 100644 --- a/LibTest/io/HttpClientResponse/persistentConnection_A02_t02.dart +++ b/LibTest/io/HttpClientResponse/persistentConnection_A02_t02.dart @@ -37,7 +37,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isTrue(response.persistentConnection); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/persistentConnection_A03_t01.dart b/LibTest/io/HttpClientResponse/persistentConnection_A03_t01.dart index e819071cf0..fa42ee1a8b 100644 --- a/LibTest/io/HttpClientResponse/persistentConnection_A03_t01.dart +++ b/LibTest/io/HttpClientResponse/persistentConnection_A03_t01.dart @@ -40,7 +40,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isFalse(response.persistentConnection); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/reasonPhrase_A01_t01.dart b/LibTest/io/HttpClientResponse/reasonPhrase_A01_t01.dart index 0eb7ed0235..614df6708c 100644 --- a/LibTest/io/HttpClientResponse/reasonPhrase_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/reasonPhrase_A01_t01.dart @@ -35,7 +35,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals("OK", response.reasonPhrase); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/reasonPhrase_A01_t02.dart b/LibTest/io/HttpClientResponse/reasonPhrase_A01_t02.dart index cb50dbda09..c3188bd668 100644 --- a/LibTest/io/HttpClientResponse/reasonPhrase_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/reasonPhrase_A01_t02.dart @@ -36,7 +36,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals("Reason-Phrase", response.reasonPhrase); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/reasonPhrase_A02_t01.dart b/LibTest/io/HttpClientResponse/reasonPhrase_A02_t01.dart index e8169ff0d1..1e42aca1b5 100644 --- a/LibTest/io/HttpClientResponse/reasonPhrase_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/reasonPhrase_A02_t01.dart @@ -38,7 +38,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals("OK", response.reasonPhrase); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/redirect_A01_t01.dart b/LibTest/io/HttpClientResponse/redirect_A01_t01.dart index f2c6ce587b..ad95614dd4 100644 --- a/LibTest/io/HttpClientResponse/redirect_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/redirect_A01_t01.dart @@ -55,7 +55,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirect_A02_t01.dart b/LibTest/io/HttpClientResponse/redirect_A02_t01.dart index 02bfe0b7fb..d7c3d187b3 100644 --- a/LibTest/io/HttpClientResponse/redirect_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/redirect_A02_t01.dart @@ -58,7 +58,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response.redirect().then((HttpClientResponse resp) { diff --git a/LibTest/io/HttpClientResponse/redirect_A03_t01.dart b/LibTest/io/HttpClientResponse/redirect_A03_t01.dart index fbe08e5f12..f388f7917b 100644 --- a/LibTest/io/HttpClientResponse/redirect_A03_t01.dart +++ b/LibTest/io/HttpClientResponse/redirect_A03_t01.dart @@ -61,7 +61,7 @@ test(String method) async { request.headers.set(HttpHeaders.fromHeader, "From Dart with Love"); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirect_A04_t01.dart b/LibTest/io/HttpClientResponse/redirect_A04_t01.dart index 82ed038e1e..f52ce09e9e 100644 --- a/LibTest/io/HttpClientResponse/redirect_A04_t01.dart +++ b/LibTest/io/HttpClientResponse/redirect_A04_t01.dart @@ -65,7 +65,7 @@ test(String method) async { request.writeln(lily); return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirect_A05_t01.dart b/LibTest/io/HttpClientResponse/redirect_A05_t01.dart index 45064ecbbf..ef4d2434dc 100644 --- a/LibTest/io/HttpClientResponse/redirect_A05_t01.dart +++ b/LibTest/io/HttpClientResponse/redirect_A05_t01.dart @@ -59,7 +59,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirect_A05_t02.dart b/LibTest/io/HttpClientResponse/redirect_A05_t02.dart index cec79c53be..e91472da7a 100644 --- a/LibTest/io/HttpClientResponse/redirect_A05_t02.dart +++ b/LibTest/io/HttpClientResponse/redirect_A05_t02.dart @@ -59,7 +59,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirect_A05_t03.dart b/LibTest/io/HttpClientResponse/redirect_A05_t03.dart index 682d8e3059..155b98160d 100644 --- a/LibTest/io/HttpClientResponse/redirect_A05_t03.dart +++ b/LibTest/io/HttpClientResponse/redirect_A05_t03.dart @@ -59,7 +59,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx0", content); }); response.redirect("GET", new Uri(path: "xxx")).then((HttpClientResponse resp) { diff --git a/LibTest/io/HttpClientResponse/redirects_A01_t01.dart b/LibTest/io/HttpClientResponse/redirects_A01_t01.dart index 09654fb967..3ff06b71f5 100644 --- a/LibTest/io/HttpClientResponse/redirects_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/redirects_A01_t01.dart @@ -34,7 +34,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.isTrue(response.redirects.isEmpty); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/redirects_A01_t02.dart b/LibTest/io/HttpClientResponse/redirects_A01_t02.dart index d5b1aae68b..2edb798dc7 100644 --- a/LibTest/io/HttpClientResponse/redirects_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/redirects_A01_t02.dart @@ -48,7 +48,7 @@ test(String method, int statusCode) async { }).then((HttpClientResponse response) { Expect.equals(1, response.redirects.length); Expect.equals("/yyy", response.redirects[0].location.path); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); } diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t01.dart b/LibTest/io/HttpClientResponse/redirects_A02_t01.dart index 684dfb5d90..84dff22560 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t01.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t02.dart b/LibTest/io/HttpClientResponse/redirects_A02_t02.dart index 54fce95159..a41114c564 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t02.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t02.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t03.dart b/LibTest/io/HttpClientResponse/redirects_A02_t03.dart index 117cc91a3c..8dc85fab55 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t03.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t03.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t04.dart b/LibTest/io/HttpClientResponse/redirects_A02_t04.dart index 41f0ba567a..65397d6637 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t04.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t04.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t05.dart b/LibTest/io/HttpClientResponse/redirects_A02_t05.dart index 198357a1f4..511ace5e38 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t05.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t05.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A02_t06.dart b/LibTest/io/HttpClientResponse/redirects_A02_t06.dart index dbe911113e..46be1dcce8 100644 --- a/LibTest/io/HttpClientResponse/redirects_A02_t06.dart +++ b/LibTest/io/HttpClientResponse/redirects_A02_t06.dart @@ -41,7 +41,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response diff --git a/LibTest/io/HttpClientResponse/redirects_A03_t01.dart b/LibTest/io/HttpClientResponse/redirects_A03_t01.dart index e49fbf0fee..eb89ecf4c6 100644 --- a/LibTest/io/HttpClientResponse/redirects_A03_t01.dart +++ b/LibTest/io/HttpClientResponse/redirects_A03_t01.dart @@ -43,7 +43,7 @@ test(String method) async { .then((HttpClientRequest request) { return request.close(); }).then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals("xxx", content); }); response.redirect("get", new Uri(path: "yyy")).then(( diff --git a/LibTest/io/HttpClientResponse/redirects_A04_t01.dart b/LibTest/io/HttpClientResponse/redirects_A04_t01.dart index 99712c3283..7adb28562b 100644 --- a/LibTest/io/HttpClientResponse/redirects_A04_t01.dart +++ b/LibTest/io/HttpClientResponse/redirects_A04_t01.dart @@ -49,7 +49,7 @@ test(String method, int maxRedirects, int status) async { Expect.equals("/${count++}", redirectInfo.location.path); Expect.equals(method.toUpperCase(), redirectInfo.method); } - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/statusCode_A01_t01.dart b/LibTest/io/HttpClientResponse/statusCode_A01_t01.dart index 3b965f0f1b..58d48b45cb 100644 --- a/LibTest/io/HttpClientResponse/statusCode_A01_t01.dart +++ b/LibTest/io/HttpClientResponse/statusCode_A01_t01.dart @@ -35,7 +35,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/statusCode_A01_t02.dart b/LibTest/io/HttpClientResponse/statusCode_A01_t02.dart index c9105a1ff6..5c3f94a3a4 100644 --- a/LibTest/io/HttpClientResponse/statusCode_A01_t02.dart +++ b/LibTest/io/HttpClientResponse/statusCode_A01_t02.dart @@ -35,7 +35,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.accepted, response.statusCode); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpClientResponse/statusCode_A02_t01.dart b/LibTest/io/HttpClientResponse/statusCode_A02_t01.dart index 3523af110a..405a6622e7 100644 --- a/LibTest/io/HttpClientResponse/statusCode_A02_t01.dart +++ b/LibTest/io/HttpClientResponse/statusCode_A02_t01.dart @@ -38,7 +38,7 @@ test(String method) async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); asyncEnd(); }); } diff --git a/LibTest/io/HttpServer/HttpServer.listenOn_A01_t01.dart b/LibTest/io/HttpServer/HttpServer.listenOn_A01_t01.dart index 37295e645c..1e99ec30cb 100644 --- a/LibTest/io/HttpServer/HttpServer.listenOn_A01_t01.dart +++ b/LibTest/io/HttpServer/HttpServer.listenOn_A01_t01.dart @@ -36,7 +36,7 @@ test() async { var response = await request.close(); Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); serverSocket.close(); }); @@ -46,4 +46,4 @@ test() async { main() { asyncStart(); test(); -} \ No newline at end of file +} diff --git a/LibTest/io/HttpServer/autoCompress_A02_t01.dart b/LibTest/io/HttpServer/autoCompress_A02_t01.dart index ddc991853f..5eec59610c 100644 --- a/LibTest/io/HttpServer/autoCompress_A02_t01.dart +++ b/LibTest/io/HttpServer/autoCompress_A02_t01.dart @@ -44,7 +44,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/autoCompress_A02_t02.dart b/LibTest/io/HttpServer/autoCompress_A02_t02.dart index 374c5c7fad..d543c584e0 100644 --- a/LibTest/io/HttpServer/autoCompress_A02_t02.dart +++ b/LibTest/io/HttpServer/autoCompress_A02_t02.dart @@ -49,7 +49,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.isFalse( response.headers.value(HttpHeaders.contentEncodingHeader) == "gzip"); Expect.equals(helloWorld, content); diff --git a/LibTest/io/HttpServer/autoCompress_A02_t03.dart b/LibTest/io/HttpServer/autoCompress_A02_t03.dart index 495de77171..ad26cb3c43 100644 --- a/LibTest/io/HttpServer/autoCompress_A02_t03.dart +++ b/LibTest/io/HttpServer/autoCompress_A02_t03.dart @@ -49,7 +49,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(gzip.decoder).transform(utf8.decoder).listen((content) { + response.cast>().transform(gzip.decoder).transform(utf8.decoder).listen((content) { Expect.isTrue( response.headers.value(HttpHeaders.contentEncodingHeader) == "gzip"); Expect.equals(helloWorld, content); diff --git a/LibTest/io/HttpServer/bind_A01_t01.dart b/LibTest/io/HttpServer/bind_A01_t01.dart index ad1c36f329..d2e35c014a 100644 --- a/LibTest/io/HttpServer/bind_A01_t01.dart +++ b/LibTest/io/HttpServer/bind_A01_t01.dart @@ -41,7 +41,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); @@ -52,4 +52,4 @@ test() async { main() { asyncStart(); test(); -} \ No newline at end of file +} diff --git a/LibTest/io/HttpServer/bind_A01_t02.dart b/LibTest/io/HttpServer/bind_A01_t02.dart index 62889b8a1f..d75b42d316 100644 --- a/LibTest/io/HttpServer/bind_A01_t02.dart +++ b/LibTest/io/HttpServer/bind_A01_t02.dart @@ -40,7 +40,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/bind_A02_t01.dart b/LibTest/io/HttpServer/bind_A02_t01.dart index a70d7e1a9f..b928b67ac6 100644 --- a/LibTest/io/HttpServer/bind_A02_t01.dart +++ b/LibTest/io/HttpServer/bind_A02_t01.dart @@ -51,7 +51,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/bind_A02_t02.dart b/LibTest/io/HttpServer/bind_A02_t02.dart index 390ca524fe..f701b644d6 100644 --- a/LibTest/io/HttpServer/bind_A02_t02.dart +++ b/LibTest/io/HttpServer/bind_A02_t02.dart @@ -47,7 +47,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/bind_A02_t03.dart b/LibTest/io/HttpServer/bind_A02_t03.dart index 762681ff90..1d07359026 100644 --- a/LibTest/io/HttpServer/bind_A02_t03.dart +++ b/LibTest/io/HttpServer/bind_A02_t03.dart @@ -49,7 +49,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/bind_A03_t01.dart b/LibTest/io/HttpServer/bind_A03_t01.dart index ff00521f08..1bd2fc09ae 100644 --- a/LibTest/io/HttpServer/bind_A03_t01.dart +++ b/LibTest/io/HttpServer/bind_A03_t01.dart @@ -45,7 +45,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); @@ -56,4 +56,4 @@ test() async { main() { asyncStart(); test(); -} \ No newline at end of file +} diff --git a/LibTest/io/HttpServer/close_A01_t01.dart b/LibTest/io/HttpServer/close_A01_t01.dart index ceb738f7ff..00964a957e 100644 --- a/LibTest/io/HttpServer/close_A01_t01.dart +++ b/LibTest/io/HttpServer/close_A01_t01.dart @@ -39,7 +39,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); bool thrown = false; try { diff --git a/LibTest/io/HttpServer/close_A02_t01.dart b/LibTest/io/HttpServer/close_A02_t01.dart index 9717f08130..c02ca29516 100644 --- a/LibTest/io/HttpServer/close_A02_t01.dart +++ b/LibTest/io/HttpServer/close_A02_t01.dart @@ -40,7 +40,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/close_A03_t01.dart b/LibTest/io/HttpServer/close_A03_t01.dart index 9705fcee18..3f48a44df6 100644 --- a/LibTest/io/HttpServer/close_A03_t01.dart +++ b/LibTest/io/HttpServer/close_A03_t01.dart @@ -40,7 +40,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/close_A04_t01.dart b/LibTest/io/HttpServer/close_A04_t01.dart index ac63724948..1296d4d80a 100644 --- a/LibTest/io/HttpServer/close_A04_t01.dart +++ b/LibTest/io/HttpServer/close_A04_t01.dart @@ -43,7 +43,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/close_A05_t01.dart b/LibTest/io/HttpServer/close_A05_t01.dart index ac63724948..1296d4d80a 100644 --- a/LibTest/io/HttpServer/close_A05_t01.dart +++ b/LibTest/io/HttpServer/close_A05_t01.dart @@ -43,7 +43,7 @@ test() async { return request.close(); }).then((HttpClientResponse response) { Expect.equals(HttpStatus.ok, response.statusCode); - response.transform(utf8.decoder).listen((content) { + response.cast>().transform(utf8.decoder).listen((content) { Expect.equals(helloWorld, content); asyncEnd(); }); diff --git a/LibTest/io/HttpServer/connectionsInfo_A01_t01.dart b/LibTest/io/HttpServer/connectionsInfo_A01_t01.dart index f8e51df5f7..1b2de2e0fc 100644 --- a/LibTest/io/HttpServer/connectionsInfo_A01_t01.dart +++ b/LibTest/io/HttpServer/connectionsInfo_A01_t01.dart @@ -47,11 +47,11 @@ test() async { .parse("http://${InternetAddress.loopbackIPv4.address}:${server.port}"); client.getUrl(uri).then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); client.getUrl(uri).then((HttpClientRequest request) => request.close()) .then((HttpClientResponse response) { - response.transform(utf8.decoder).listen((content) {}); + response.cast>().transform(utf8.decoder).listen((content) {}); }); }