contentType property

String? get contentType
inherited

Implementation

String? get contentType => _headers[Headers.contentTypeHeader] as String?;
set contentType (String? contentType)
inherited

Implementation

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