hypercorn.middleware.dispatcher module

class hypercorn.middleware.dispatcher.AsyncioDispatcherMiddleware(mounts: Dict[str, Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]]])

Bases: hypercorn.middleware.dispatcher._DispatcherMiddleware

async send(path: str, send: Callable, message: dict) → None
hypercorn.middleware.dispatcher.DispatcherMiddleware

alias of hypercorn.middleware.dispatcher.AsyncioDispatcherMiddleware

class hypercorn.middleware.dispatcher.TrioDispatcherMiddleware(mounts: Dict[str, Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]]])

Bases: hypercorn.middleware.dispatcher._DispatcherMiddleware

async send(path: str, send: Callable, message: dict) → None