class_docstr: Subclass this class and override :meth:`dispatch_request` to
  create a generic class-based view. Call :meth:`as_view` to create a
  view function that creates an instance of the class with the given
  arguments and calls its ``dispatch_request`` method with any URL
  variables.
  
  See :doc:`views` for a detailed guide.
  
  .. code-block:: python
  
      class Hello(View):
          init_every_request = False
  
          def dispatch_request(self, name):
              return f"Hello, {name}!"
  
      app.add_url_rule(
          "/hello/<name>", view_func=Hello.as_view("hello")
      )
  
  Set :attr:`methods` on the class to change what methods the view
  accepts.
  
  Set :attr:`decorators` on the class to apply a list of decorators to
  the generated view function. Decorators applied to the class itself
  will not be applied to the generated view function!
  
  Set :attr:`init_every_request` to ``False`` for efficiency, unless
  you need to store request-global data on ``self``.
class_docstr_tok: ["Subclass","this","class","and","override",":","meth",":","`","dispatch_request","`","to","create","a","generic","class-based","view",".","Call",":","meth",":","`","as_view","`","to","create","a","view","function","that","creates","an","instance","of","the","class","with","the","given","arguments","and","calls","its","``","dispatch_request","``","method","with","any","URL","variables",".","See",":","doc",":","`","views","`","for","a","detailed","guide",".","..","code-block",":",":","python","class","Hello","(","View",")",":","init_every_request","=","False","def","dispatch_request","(","self",",","name",")",":","return","f","''","Hello",",","{","name","}","!","''","app.add_url_rule","(","``","\/hello\/","<","name",">","''",",","view_func=Hello.as_view","(","``","hello","''",")",")","Set",":","attr",":","`","methods","`","on","the","class","to","change","what","methods","the","view","accepts",".","Set",":","attr",":","`","decorators","`","on","the","class","to","apply","a","list","of","decorators","to","the","generated","view","function",".","Decorators","applied","to","the","class","itself","will","not","be","applied","to","the","generated","view","function","!","Set",":","attr",":","`","init_every_request","`","to","``","False","``","for","efficiency",",","unless","you","need","to","store","request-global","data","on","``","self","``","."]
docstr: The actual view function behavior. Subclasses must override
  this and return a valid response. Any variables from the URL
  rule are passed as keyword arguments.
docstr_tok: ["The","actual","view","function","behavior",".","Subclasses","must","override","this","and","return","a","valid","response",".","Any","variables","from","the","URL","rule","are","passed","as","keyword","arguments","."]
code: def dispatch_request(self) -> ft.ResponseReturnValue:
      """The actual view function behavior. Subclasses must override
      this and return a valid response. Any variables from the URL
      rule are passed as keyword arguments.
      """
      raise NotImplementedError()
  
file_path: flask/src/flask/views.py
imports: from __future__ import annotations
  import typing
  from .None import typing
  from .globals import current_app
  from .globals import request
label_desc: Use image node_id 1 for calling the View obj's underlying member method code with example usage: obj.dispatch_request() without return types