Skip to content

Commit c1ccdbc

Browse files
authored
added docs for startup/shutdown of ASGI apps (#1554)
1 parent 52dd95f commit c1ccdbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/async.md

+6
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,9 @@ async with httpx.AsyncClient(transport=transport, base_url="http://testserver")
237237
```
238238

239239
See [the ASGI documentation](https://asgi.readthedocs.io/en/latest/specs/www.html#connection-scope) for more details on the `client` and `root_path` keys.
240+
241+
## Startup/shutdown of ASGI apps
242+
243+
It is not in the scope of HTTPX to trigger lifespan events of your app.
244+
245+
However it is suggested to use `LifespanManager` from [asgi-lifespan](https://github.com/florimondmanca/asgi-lifespan#usage) in pair with `AsyncClient`.

0 commit comments

Comments
 (0)