void addHeaders(Map<String, String> map) => map.forEach((key, value) => resources.headers[key] = value);