Relax headers function type in http promise callbacks.

if you pass no arguments, you get the entire headers structure back.