code: def dispatch_request(self):
          
  
          req = _request_ctx_stack.top.request
          app = current_app
  
          # Return flask's default options response. See issue #40
          if req.method == "OPTIONS":
              return app.make_default_options_response()
  
          if req.routing_exception is not None:
              app.raise_routing_exception(req)
  
          # The routing rule has some handy attributes to extract how Flask found
          # this endpoint
          rule = req.url_rule
  
          # Wrap the real view_func
          view_func = self.wrap_view_func(
              app, rule, req, app.view_functions[rule.endpoint], req.view_args
          )
  
          return view_func(**req.view_args)
docs: Modified version of Flask.dispatch_request to call process_view.