Update asgi.py docstring (#3210)

Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
Michael Feil 2024-06-06 08:36:07 -07:00 committed by GitHub
parent e186ecc9f8
commit 92e9dfb399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,17 +50,8 @@ class ASGIResponseStream(AsyncByteStream):
class ASGITransport(AsyncBaseTransport):
"""
A custom AsyncTransport that handles sending requests directly to an ASGI app.
The simplest way to use this functionality is to use the `app` argument.
```
client = httpx.AsyncClient(app=app)
```
Alternatively, you can setup the transport instance explicitly.
This allows you to include any additional configuration arguments specific
to the ASGITransport class:
```
```python
transport = httpx.ASGITransport(
app=app,
root_path="/submount",