rewrite headers of request and response.