def create_response(self, content, **response_kwargs):
        response_class = response_kwargs.pop('response_class', self.response_class)
        response_kwargs.setdefault('content_type', self.CONTENT_TYPES[0])
        return response_class(self.dumps(content), **response_kwargs)
Return a response, serialising the content
dataset/ETHPy150Open funkybob/django-nap/nap/rest/publisher.py/Publisher.create_response