def _finalize_response(self, response):
        """ Convert the ``Response`` object into django's ``HttpResponse``

        :return: django's ``HttpResponse``
        """

        res = HttpResponse(content=response.content,
                           content_type=self._get_content_type())
        # status_code is set separately to allow zero
        res.status_code = response.code
        return res
def _finalize_response ( self , response ) : res = HttpResponse ( content = response . content , content_type = self . _get_content_type ( ) ) res . status_code = response . code return res
Convert the ``Response`` object into django's ``HttpResponse``

        :return: django's ``HttpResponse``