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