Method to retrieve the request headers about to be sent
The native
XMLHttpRequest API doesn't have methods to get request headers. It would be useful to add one to the jqXHR object, to facilitate debugging and test automation.
User requests dating back from 2011:
... and "request headers" showing up in Google's autocomplete when searching for "jqXHR get".