headers function in http promise callbacks: passing no name arg returns entire headers object.
Merge pull request #3016 from zerobuzz/make-http-headers-fun-arg-optional

Relax headers function type in http promise callbacks.