ASGI¶
- class microdot.asgi.Microdot(lifespan_startup=None, lifespan_shutdown=None)¶
A subclass of the core
Microdotclass that implements the ASGI protocol.- Parameters:
startup – An optional function to handle the lifespan.startup ASGI signal.
shutdown – An optional function to handle the lifespan.shutdown ASGI signal.
This class must be used as the application instance when running under an ASGI web server.
- async asgi_app(scope, receive, send)¶
An ASGI application.