httk.serve.web.runtime.asgi¶
Adapt a site engine to Starlette request and lifecycle handling.
Attributes¶
Functions¶
|
Create the Starlette application for a site engine. |
Module Contents¶
- httk.serve.web.runtime.asgi.create_app(*, engine, debug=False)[source]¶
Create the Starlette application for a site engine.
- Parameters:
engine (httk.serve.web.engine.site_engine.SiteEngine) – Site engine owned by the ASGI application lifecycle.
debug (bool) – Whether to enable Starlette debug responses.
- Returns:
Configured Starlette application.
- Return type: