              # TODO: should we enforce HttpResponse, like Django does ?
              response = handler(request, *args, **kwargs)
  
              # Prepare response for the response cycle.
              self.prepare_response(response)
  
              # Pre-serialize filtering (eg filter complex objects into natively serializable types)
              # TODO: ugly hack to handle both HttpResponse and Response. 
              if hasattr(response, 'raw_content'):
                  response.raw_content = self.filter_response(response.raw_content)
 
</s> remove         Prepares the response for the response cycle. This has no effect if the 
        response is not an instance of :class:`response.Response`.
 </s> add         Prepares the response for the response cycle, and returns the prepared response. 
        This has no effect if the response is not an instance of :class:`response.Response`. </s> remove     parsers = ()
    """
    The set of parsers that the request can handle.

    Should be a tuple/list of classes as described in the :mod:`parsers` module.
    """

    def __init__(self, request):
        # this allows to "copy" a request object into a new instance
        # of our custom request class.

        # First, we prepare the attributes to copy.
        attrs_dict = request.__dict__.copy()
        attrs_dict.pop('method', None)
        attrs_dict['_raw_method'] = request.method

        # Then, put them in the instance's own __dict__
        self.__dict__ = attrs_dict
 </s> add     def __init__(self, request=None, parsers=None):
        """
        `parsers` is a list/tuple of parser instances and represents the set of psrsers
        that the response can handle.
        """
        self.request = request
        if parsers is not None:
            self.parsers = parsers </s> remove             self.request = request = self.get_request()
 </s> add             request = self.prepare_request(request) </s> remove         return request_class(original_request)
 </s> add         rkwargs = {}
        if parsers is not None:
            rkwargs['parsers'] = parsers
        request = Request(original_request, **rkwargs)
        # TODO: Just a hack because the parsers need a view. This will be fixed in the future
        class Obj(object): pass
        obj = Obj()
        obj.request = request
        for p in request.parsers:
            p.view = obj
        return request </s> remove             django_parser = DjangoMultiPartParser(self.view.META, stream, upload_handlers)
 </s> add             django_parser = DjangoMultiPartParser(self.view.request.META, stream, upload_handlers)
            response = self.prepare_response(response)
              # TODO: should we enforce HttpResponse, like Django does ?
              response = handler(request, *args, **kwargs)
  
              # Prepare response for the response cycle.
            response = self.prepare_response(response)
  
              # Pre-serialize filtering (eg filter complex objects into natively serializable types)
              # TODO: ugly hack to handle both HttpResponse and Response. 
              if hasattr(response, 'raw_content'):
                  response.raw_content = self.filter_response(response.raw_content)
keep keep keep keep replace keep keep keep keep keep
 cleaned Request/Response/mixins to have similar interface 
djangorestframework/views.py