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

Unified Diff: pkg/http_server/lib/src/http_multipart_form_data_impl.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
Index: pkg/http_server/lib/src/http_multipart_form_data_impl.dart
diff --git a/pkg/http_server/lib/src/http_multipart_form_data_impl.dart b/pkg/http_server/lib/src/http_multipart_form_data_impl.dart
index ed41d1df82791cf8e73c725d17a13ae85eb3ce3a..dc72bf1fb00cc0cd1964fe767eb38ee6ff556133 100644
--- a/pkg/http_server/lib/src/http_multipart_form_data_impl.dart
+++ b/pkg/http_server/lib/src/http_multipart_form_data_impl.dart
@@ -2,10 +2,18 @@
// 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_multipart_form_data_impl;
+import 'dart:async';
+import 'dart:convert';
+import 'dart:io';
-class _HttpMultipartFormData extends Stream implements HttpMultipartFormData {
+import 'package:mime/mime.dart';
+
+import 'http_multipart_form_data.dart';
+
+class HttpMultipartFormDataImpl extends Stream
+ implements HttpMultipartFormData {
final ContentType contentType;
final HeaderValue contentDisposition;
final HeaderValue contentTransferEncoding;
@@ -16,7 +24,7 @@ class _HttpMultipartFormData extends Stream implements HttpMultipartFormData {
Stream _stream;
- _HttpMultipartFormData(ContentType this.contentType,
+ HttpMultipartFormDataImpl(ContentType this.contentType,
HeaderValue this.contentDisposition,
HeaderValue this.contentTransferEncoding,
MimeMultipart this._mimeMultipart,
@@ -74,7 +82,7 @@ class _HttpMultipartFormData extends Stream implements HttpMultipartFormData {
throw new HttpException(
"Mime Multipart doesn't contain a Content-Disposition header value");
}
- return new _HttpMultipartFormData(
+ return new HttpMultipartFormDataImpl(
type, disposition, encoding, multipart, defaultEncoding);
}
« no previous file with comments | « pkg/http_server/lib/src/http_multipart_form_data.dart ('k') | pkg/http_server/lib/src/virtual_directory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698