OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 part of dart.io; |
| 6 |
5 /** | 7 /** |
6 * Parser for MIME multipart types of data as described in RFC 2046 | 8 * Parser for MIME multipart types of data as described in RFC 2046 |
7 * section 5.1.1. The data to parse is supplied through the [:update:] | 9 * section 5.1.1. The data to parse is supplied through the [:update:] |
8 * method. As the data is parsed the following callbacks are called: | 10 * method. As the data is parsed the following callbacks are called: |
9 * | 11 * |
10 * [:partStart; | 12 * [:partStart; |
11 * [:headerReceived; | 13 * [:headerReceived; |
12 * [:headersComplete; | 14 * [:headersComplete; |
13 * [:partDataReceived; | 15 * [:partDataReceived; |
14 * [:partEnd; | 16 * [:partEnd; |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 Function partDataReceived; | 324 Function partDataReceived; |
323 Function partEnd; | 325 Function partEnd; |
324 } | 326 } |
325 | 327 |
326 | 328 |
327 class MimeParserException implements Exception { | 329 class MimeParserException implements Exception { |
328 const MimeParserException([String this.message = ""]); | 330 const MimeParserException([String this.message = ""]); |
329 String toString() => "MimeParserException: $message"; | 331 String toString() => "MimeParserException: $message"; |
330 final String message; | 332 final String message; |
331 } | 333 } |
OLD | NEW |