I would like to pass the queryString of the current rest call as a parameter in my headers.
Here is an example of code:
App.AppSessionAdapter.reopen({
namespace: 'api',
host: function () {
return 'https://something/';
}.property(),
headers:
{
'AUTH': 'I need The QueryString to this REST Call. eg: UserID="12134"&Date="10/15/16"'
}
});
Since you require looking at the data you are sending on your request, you might want to look into extending the RESTAdapter and overriding the ajax method.