Add ability to customize header rewriting.