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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of dart.io;
6
7
Søren Gjesse 2013/05/06 12:28:10 Some documentation is needed here.
Anders Johnsen 2013/05/06 13:38:16 Done.
8 abstract class HttpMultipartFormData implements Stream {
9 ContentType get contentType;
10 HeaderValue get contentDisposition;
11 HeaderValue get contentTransferEncoding;
12
13 bool get isText;
14 bool get isBinary;
15
16 static HttpMultipartFormData parse(MimeMultipart multipart)
17 => _HttpMultipartFormData.parse(multipart);
18
19 /**
20 * Returns the value for the header named [name]. If there
21 * is no header with the provided name, [:null:] will be returned.
22 */
23 HeaderValue value(String name);
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698