Get all headers 3992

Thanks @chrisdickinson for the pointer to this bug.
Should probably be something like:

> Returns the headers which have already been queued but not yet sent to the client.