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

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

Issue 14796015: Add new HttpMultipartFormData, used for parsing a MimeMultipart and extracting either text or binar… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and fix tests. Created 7 years, 7 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
Index: sdk/lib/io/http_multipart_form_data.dart
diff --git a/sdk/lib/io/http_multipart_form_data.dart b/sdk/lib/io/http_multipart_form_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1e50498a23fa0d6992237cb6048393beba2c3838
--- /dev/null
+++ b/sdk/lib/io/http_multipart_form_data.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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;
+
+
Søren Gjesse 2013/05/06 12:28:10 Some documentation is needed here.
Anders Johnsen 2013/05/06 13:38:16 Done.
+abstract class HttpMultipartFormData implements Stream {
+ ContentType get contentType;
+ HeaderValue get contentDisposition;
+ HeaderValue get contentTransferEncoding;
+
+ bool get isText;
+ bool get isBinary;
+
+ static HttpMultipartFormData parse(MimeMultipart multipart)
+ => _HttpMultipartFormData.parse(multipart);
+
+ /**
+ * Returns the value for the header named [name]. If there
+ * is no header with the provided name, [:null:] will be returned.
+ */
+ HeaderValue value(String name);
+}

Powered by Google App Engine
This is Rietveld 408576698