contentType property
Implementation
String? get contentType => _headers[Headers.contentTypeHeader] as String?;
Implementation
set contentType(String? contentType) {
final newContentType = contentType?.trim();
_defaultContentType = newContentType;
if (newContentType != null) {
_headers[Headers.contentTypeHeader] = newContentType;
} else {
_headers.remove(Headers.contentTypeHeader);
}
}