OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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; | 5 part of http_server; |
6 | 6 |
7 | 7 |
8 /** | 8 /** |
9 * [HttpBodyHandler] is a helper class for processing and collecting | 9 * [HttpBodyHandler] is a helper class for processing and collecting |
10 * HTTP message data in an easy-to-use [HttpBody] object. The content | 10 * HTTP message data in an easy-to-use [HttpBody] object. The content |
11 * body is parsed, depending on the `Content-Type` header field. When | 11 * body is parsed, depending on the `Content-Type` header field. When |
12 * the full body is read and parsed the body content is made | 12 * the full body is read and parsed the body content is made |
13 * available. The class can be used to process both server requests | 13 * available. The class can be used to process both server requests |
14 * and client responses. | 14 * and client responses. |
15 * | 15 * |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 * The [ContentType] of the uploaded file. For 'text/\*' and | 229 * The [ContentType] of the uploaded file. For 'text/\*' and |
230 * 'application/json' the [data] field will a String. | 230 * 'application/json' the [data] field will a String. |
231 */ | 231 */ |
232 ContentType contentType; | 232 ContentType contentType; |
233 | 233 |
234 /** | 234 /** |
235 * The content of the file. Either a [String] or a [List<int>]. | 235 * The content of the file. Either a [String] or a [List<int>]. |
236 */ | 236 */ |
237 dynamic content; | 237 dynamic content; |
238 } | 238 } |
OLD | NEW |