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 http_server; | 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 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 | 217 |
218 /** | 218 /** |
219 * A [HttpBodyFileUpload] object wraps a file upload, presenting a way for | 219 * A [HttpBodyFileUpload] object wraps a file upload, presenting a way for |
220 * extracting filename, contentType and the data of the uploaded file. | 220 * extracting filename, contentType and the data of the uploaded file. |
221 */ | 221 */ |
222 abstract class HttpBodyFileUpload { | 222 abstract class HttpBodyFileUpload { |
223 /** | 223 /** |
224 * The filename of the uploaded file. | 224 * The filename of the uploaded file. |
225 */ | 225 */ |
226 String filename; | 226 String get filename; |
227 | 227 |
228 /** | 228 /** |
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 get 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 get content; |
238 } | 238 } |
OLD | NEW |