customHeaders property
Your custom headers.
Implementation
Map<String, String>? get customHeaders => _customHeaders;
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);
});
}