contentType property
ContentType?
contentType
Implementation
ContentType? get contentType {
String? str = value(HttpHeaders.contentTypeHeader);
if (str is! String) {
return null;
}
return ContentType.parse(str);
}
Gets and sets the content type
Implementation
set contentType(ContentType? contentType) {
if (contentType == null) {
// TODO remove context type
return;
}
set(HttpHeaders.contentTypeHeader, contentType.toString());
}