modal.asgi_app
asgi_app(*, label=None, custom_domains=None, requires_proxy_auth=False)Decorator for registering an ASGI app as a Web Function.
Asynchronous Server Gateway Interface (ASGI) is a standard for Python web apps, supported by all popular Python web libraries.
To learn how to use Modal with popular web frameworks, see the guide on Web Functions.
Usage
from typing import Callable
@app.function()
@modal.asgi_app()
def create_asgi() -> Callable:
...