When using the NPM request module's request.defaults API, does anyone know of anyway in which I can pass a function as a request header, so that the function's result becomes the header value everytime I make an outgoing request?
i.e.
request.defaults({
headers:{datestamp:() => new Date()
})