[docs]classApp:""" The App class is used as the app. It which will be used for all activities. This requires a `Router` to be attached for serving responses accordingly. To instantiate a `name` value is also needed. The __call__ function has the ASGI app. """def__init__(self,router:Router,request_class:structure.Request=structure.Request,response:structure.Response=structure.Response(),config=None,):defstartup():passdefshutdown():passifnotconfig:self.config={"startup":startup,"shutdown":shutdown,"logger":logging.debug,}self.request_class=request_classself.router=routerself.response=responseself._app=asgi.ASGI(self)asyncdef__call__(self,scope,receive,send):awaitself._app(scope,receive,send)