headers property

Map<String, dynamic> get headers
inherited

Implementation

Map<String, dynamic> get headers => _headers;
set headers (Map<String, dynamic>? headers)
inherited

Implementation

set headers(Map<String, dynamic>? headers) {
  _headers = caseInsensitiveKeyMap(headers);
  if (!_headers.containsKey(Headers.contentTypeHeader) &&
      _defaultContentType != null) {
    _headers[Headers.contentTypeHeader] = _defaultContentType;
  }
}