Adding dependency injection support for the HttpResponse