code: def dispatch_request(self, view, view_args):
          
          # Call the :meth:`before_request` method
          resp = self.before_request()
          if resp:
              return self.after_request(make_response(resp))
          # Call the view handler method, then pass the response to :meth:`after_response`
          return self.after_request(make_response(view(self, **view_args)))
docs: View dispatcher that calls before_request, the view, and then after_request.
          Subclasses may override this to provide a custom flow. :class:`ModelView`
          does this to insert a model loading phase.
  
          :param view: View method wrapped in specified decorators. The dispatcher
              must call this
          :param dict view_args: View arguments, to be passed on to the view method