encodeHeaders static method
Implementation
static Map<String, String> encodeHeaders(Map<String, String>? headers)
{
Map<String, String> _headers = {};
if (headers == null)
{
_headers[HttpHeaders.ageHeader] = '0';
_headers[HttpHeaders.contentEncodingHeader] = 'utf8';
_headers[HttpHeaders.contentTypeHeader] = "application/xml";
if (System.app?.jwt?.token != null) _headers[HttpHeaders.authorizationHeader] = "Bearer ${System.app!.jwt!.token}";
}
else headers.forEach((key, value) => _headers[key] = value);
return _headers;
}