Skip to content
Myr

added docs for startup/shutdown of ASGI apps (#1554)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jaakko Lappalainen · committed by GitHub · parent 52dd95f · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/async.md+6 added
235 unmodified lines
236 ...237```238239See [the ASGI documentation](https://asgi.readthedocs.io/en/latest/specs/www.html#connection-scope) for more details on the `client` and `root_path` keys.240241## Startup/shutdown of ASGI apps242243It is not in the scope of HTTPX to trigger lifespan events of your app.244245However it is suggested to use `LifespanManager` from [asgi-lifespan](https://github.com/florimondmanca/asgi-lifespan#usage) in pair with `AsyncClient`.