platform/lib/src/body_parse_result.dart

19 lines
484 B
Dart
Raw Normal View History

import 'file_upload_info.dart';
/// A representation of data from an incoming request.
2017-01-14 13:50:02 +00:00
abstract class BodyParseResult {
/// The parsed body.
2017-01-14 13:50:02 +00:00
Map<String, dynamic> get body;
/// The parsed query string.
2017-01-14 13:50:02 +00:00
Map<String, dynamic> get query;
/// All files uploaded within this request.
2017-01-14 13:50:02 +00:00
List<FileUploadInfo> get files;
/// The original body bytes sent with this request.
///
/// You must set [storeOriginalBuffer] to `true` to see this.
List<int> get originalBuffer;
}