hypercorn.asyncio.lifespan module

class hypercorn.asyncio.lifespan.Lifespan(app: Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]], config: hypercorn.config.Config)

Bases: object

async asgi_receive() → dict
async asgi_send(message: dict) → None
async handle_lifespan() → None
async wait_for_shutdown() → None
async wait_for_startup() → None
exception hypercorn.asyncio.lifespan.UnexpectedMessage

Bases: Exception