Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: sdk/lib/io/http_body.dart

Issue 13950015: Fix bugs in HttpBody detected by the analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/io/http_body_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_body.dart
diff --git a/sdk/lib/io/http_body.dart b/sdk/lib/io/http_body.dart
index 809075e202b46aca1e35883453e96e87706f870a..7a8a4942f1b6d13204c83a71c3065e6e9649669a 100644
--- a/sdk/lib/io/http_body.dart
+++ b/sdk/lib/io/http_body.dart
@@ -39,7 +39,9 @@ part of dart.io;
*/
class HttpBodyHandler
implements StreamTransformer<HttpRequest, HttpRequestBody> {
- factory HttpBodyHandler() => new _HttpBodyHandler();
+ var _transformer;
+
+ HttpBodyHandler() : _transformer = new _HttpBodyHandlerTransformer();
/**
* Process and parse an incoming [HttpRequest]. The returned [HttpRequestBody]
@@ -56,6 +58,10 @@ class HttpBodyHandler
HttpClientResponse response) {
return _HttpBodyHandler.processResponse(response);
}
+
+ Stream<HttpRequestBody> bind(Stream<HttpRequest> stream) {
+ return _transformer.bind(stream);
+ }
}
« no previous file with comments | « no previous file | sdk/lib/io/http_body_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698