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

Unified Diff: pkg/mime/lib/src/mime_multipart_transformer.dart

Issue 18438005: Move MimeMultipartTransformer and HttpBodyHandler to mime and http_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove import. Created 7 years, 5 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 | « pkg/mime/lib/mime.dart ('k') | pkg/mime/test/mime_multipart_transformer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mime/lib/src/mime_multipart_transformer.dart
diff --git a/sdk/lib/io/mime_multipart_parser.dart b/pkg/mime/lib/src/mime_multipart_transformer.dart
similarity index 96%
rename from sdk/lib/io/mime_multipart_parser.dart
rename to pkg/mime/lib/src/mime_multipart_transformer.dart
index e4d8f8ae22ec90e649af60516c935eee66489d3a..581308752fd4dc45183dc9b5bee199de19663018 100644
--- a/sdk/lib/io/mime_multipart_parser.dart
+++ b/pkg/mime/lib/src/mime_multipart_transformer.dart
@@ -2,7 +2,7 @@
// 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 dart.io;
+part of mime;
/**
@@ -30,6 +30,21 @@ class _MimeMultipart extends MimeMultipart {
}
}
+class _Const {
+ // Bytes for '()<>@,;:\\"/[]?={} \t'.
+ static const SEPARATORS = const [40, 41, 60, 62, 64, 44, 59, 58, 92, 34, 47,
+ 91, 93, 63, 61, 123, 125, 32, 9];
+}
+
+class _CharCode {
+ static const int HT = 9;
+ static const int LF = 10;
+ static const int CR = 13;
+ static const int SP = 32;
+ static const int DASH = 45;
+ static const int COLON = 58;
+}
+
/**
* Parser for MIME multipart types of data as described in RFC 2046
* section 5.1.1. The data is transformed into [MimeMultipart] objects, each
@@ -398,7 +413,7 @@ class MimeMultipartTransformer
}
-class MimeMultipartException implements IOException {
+class MimeMultipartException implements Exception {
const MimeMultipartException([String this.message = ""]);
String toString() => "MimeMultipartException: $message";
final String message;
« no previous file with comments | « pkg/mime/lib/mime.dart ('k') | pkg/mime/test/mime_multipart_transformer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698