handle request headers in the same manner as respons headers