Skip to content

Types

ASGIAppmodule-attribute

ASGIApp = Callable[[Scope, Receive, Send], Awaitable[None]]

The ASGI 3 contract is documented in full at the ASGI specification. h2corn accepts any callable matching ASGIApp — including FastAPI, Starlette, Django (asgi.application), Litestar, and Quart.