Overhauled request header handling.