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

Unified Diff: pkg/http_server/lib/src/http_body.dart

Issue 756493002: pkg/http_server: move to multi-lib layout (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: readme fixup Created 6 years, 1 month 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 | « pkg/http_server/lib/http_server.dart ('k') | pkg/http_server/lib/src/http_body_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/http_server/lib/http_server.dart ('k') | pkg/http_server/lib/src/http_body_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698