supportedContentType top-level property
List<_ContentType>
supportedContentType
final
Implementation
final supportedContentType = [
_ContentType(
'application',
[
_SubContentType(
'json',
(request, _) async => _getJsonContent(await request.readAsString()),
),
_SubContentType(
'xml',
(request, objectName) async =>
_getXmlContent(await request.readAsString(), objectName),
),
_SubContentType(
'x-www-form-urlencoded',
(request, _) async => _getXFormUrlencoded(await request.readAsString()),
),
],
),
_ContentType(
'multipart',
[
_SubContentType(
'form-data',
(request, _) => _getMultipartFormData(request),
),
],
),
];