Index: pkg/http_server/lib/src/http_body.dart |
diff --git a/pkg/http_server/lib/src/http_body.dart b/pkg/http_server/lib/src/http_body.dart |
index 6eb4d3174c721778495c0527ec2de299ef4e6a3c..c40d284326294c298713104b1c8ca300033c2ca0 100644 |
--- a/pkg/http_server/lib/src/http_body.dart |
+++ b/pkg/http_server/lib/src/http_body.dart |
@@ -2,8 +2,13 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-part of http_server; |
+library http_server.http_body; |
+import 'dart:async'; |
+import 'dart:convert'; |
+import 'dart:io'; |
+ |
+import 'http_body_impl.dart'; |
/** |
* [HttpBodyHandler] is a helper class for processing and collecting |
@@ -104,7 +109,7 @@ class HttpBodyHandler |
* for more information on `multipart/form-data`. |
*/ |
HttpBodyHandler({Encoding defaultEncoding: UTF8}) |
- : _transformer = new _HttpBodyHandlerTransformer(defaultEncoding); |
+ : _transformer = new HttpBodyHandlerTransformer(defaultEncoding); |
/** |
* Process and parse an incoming [HttpRequest]. The returned [HttpRequestBody] |
@@ -115,7 +120,7 @@ class HttpBodyHandler |
static Future<HttpRequestBody> processRequest( |
HttpRequest request, |
{Encoding defaultEncoding: UTF8}) { |
- return _HttpBodyHandler.processRequest(request, defaultEncoding); |
+ return HttpBodyHandlerImpl.processRequest(request, defaultEncoding); |
} |
/** |
@@ -126,7 +131,7 @@ class HttpBodyHandler |
static Future<HttpClientResponseBody> processResponse( |
HttpClientResponse response, |
{Encoding defaultEncoding: UTF8}) { |
- return _HttpBodyHandler.processResponse(response, defaultEncoding); |
+ return HttpBodyHandlerImpl.processResponse(response, defaultEncoding); |
} |
Stream<HttpRequestBody> bind(Stream<HttpRequest> stream) { |