added hash functions to record all headers of first request.