customHeaders property

Map<String, String>? customHeaders

Your custom headers.

Implementation

Map<String, String>? get customHeaders => _customHeaders;
void customHeaders=(Map<String, String>? value)

Implementation

set customHeaders(Map<String, String>? value) {
  if (value == null) {
    _customHeaders = null;
    return;
  }
  _customHeaders = value.map((key, value) {
    key = key.toLowerCase().trim();
    key = key.startsWith('h:x-') ? key : 'h:X-$key';
    return MapEntry(key, value);
  });
}