I set up my ApplicationAdapter
as such:
App.ApplicationAdapter = DS.RESTAdapter.extend({
headers: {
'X-Api-Key': 'ABCDEF'
}
});
Now I need to be able to read the current headers
property of Ember's instance of App.ApplicationAdapter
, so I can add to it:
var headers = {}; /* HOW DO I GET THE CURRENT HEADERS? */
headers['X-My-New-Header'] = 'someValue';
App.ApplicationAdapter.reopen({ headers: headers; });
How can I read the current headers
?