contentType property
The ContentType of the contentTypeHeader header, if any.
Implementation
@override
ContentType get contentType {
if (_data.containsKey(HttpHeaders.contentTypeHeader)) {
return ContentType.parse(_data[HttpHeaders.contentTypeHeader]!.join(','));
} else {
return ContentType.html;
}
}
The ContentType of the contentTypeHeader header, if any.
Implementation
@override
set contentType(ContentType? value) =>
set(HttpHeaders.contentTypeHeader, value?.value ?? ContentType.html);