(self, request, *args, **kwargs)
return self.response
`.dispatch()` is pretty much the same as Django's regular dispatch,
        but with extra hooks for startup, finalize, and exception handling.
`.dispatch()` is pretty much the same as Django's regular dispatch,
        but with extra hooks for startup, finalize, and exception handling.
. dispatch () is pretty much the same as Django s regular dispatch but with extra hooks for startup finalize and exception handling .
def dispatch(self, request, *args, **kwargs):
        """
        `.dispatch()` is pretty much the same as Django's regular dispatch,
        but with extra hooks for startup, finalize, and exception handling.
        """
        self.args = args
        self.kwargs = kwargs
        request = self.initialize_request(request, *args, **kwargs)
        self.request = request

        try:
            self.initial(request, *args, **kwargs)
            response = super(APIView, self).dispatch(request, *args, **kwargs)
        except Exception as exc:
            response = self.handle_exception(exc)

        self.response = self.finalize_response(request, response, *args,
                                               **kwargs)
        return self.response
def dispatch ( self , request , * args , * * kwargs ) : self . args = args self . kwargs = kwargs request = self . initialize_request ( request , * args , * * kwargs ) self . request = request try : self . initial ( request , * args , * * kwargs ) response = super ( APIView , self ) . dispatch ( request , * args , * * kwargs ) except Exception as exc : response = self . handle_exception ( exc ) self . response = self . finalize_response ( request , response , * args , * * kwargs ) return self . response