Open 4F2E4A2E opened 7 years ago
A simple yes - with an example ^^ - or a no is enough for me :)
Want it too :) For now im just using smth like:
const globalHeader = {some:object};
unirest.headers(globalHeader)[...]
in my requests or kind of this._buildHeaders() inside. Sucks but all requests looks the same so no so much DRY at it was.
Hi there, thank you for unirest!
See following example on how we are defining the header information:
Is there a way to set the headers information globally? The goal is not to define the header values for each and every request on a express route.
Thank you in advance.