Factored out host and server resolution into Request.