Skip to content

Commit 92e9dfb

Browse files
Update asgi.py docstring (#3210)
Co-authored-by: Tom Christie <[email protected]>
1 parent e186ecc commit 92e9dfb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

httpx/_transports/asgi.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,8 @@ async def __aiter__(self) -> typing.AsyncIterator[bytes]:
5050
class ASGITransport(AsyncBaseTransport):
5151
"""
5252
A custom AsyncTransport that handles sending requests directly to an ASGI app.
53-
The simplest way to use this functionality is to use the `app` argument.
5453
55-
```
56-
client = httpx.AsyncClient(app=app)
57-
```
58-
59-
Alternatively, you can setup the transport instance explicitly.
60-
This allows you to include any additional configuration arguments specific
61-
to the ASGITransport class:
62-
63-
```
54+
```python
6455
transport = httpx.ASGITransport(
6556
app=app,
6657
root_path="/submount",

0 commit comments

Comments
 (0)