Adding a method to the Response class to set the content type.