Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index 18360c64d6d85e50a2fb5f5f4dbeefd54a2c4de3..371543fa505218bff53794166aa9ea4a4292729d 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -877,14 +877,8 @@ abstract class Cookie { |
* |
* void handleGetRequest(HttpRequest req) { |
* HttpResponse res = req.response; |
- * var body = []; |
- * req.listen((List<int> buffer) => body.add(buffer), |
- * onDone: () { |
- * res.write('Received ${body.length} for request '); |
- * res.write(' ${req.method}: ${req.uri.path}'); |
- * res.close(); |
- * }, |
- * onError: handleError); |
+ * res.write('Received request ${req.method}: ${req.uri.path}'); |
+ * res.close(); |
* } |
*/ |
abstract class HttpRequest implements Stream<List<int>> { |