code: def emit(self, content, request=None, emitter=None):
          
          # Get emitter for request
          emitter = emitter or self.determine_emitter(request)
          emitter = emitter(self, request=request, response=content)
  
          # Serialize the response content
          response = emitter.emit()
  
          if not isinstance(response, HttpResponse):
              raise AssertionError("Emitter must return HttpResponse")
  
          # Append pagination headers
          if isinstance(content, Paginator):
              linked_resources = []
              if content.next_page:
                  linked_resources.append('<{0}>; rel="next"'.format(
                      content.next_page))
              if content.previous_page:
                  linked_resources.append(
                      '<{0}>; rel="previous"'.format(content.previous_page))
              response["Link"] = ", ".join(linked_resources)
  
          return response
docs: Serialize response.
  
          :return response: Instance of django.http.Response