Refactor HttpRequest#respondWith