Skip to content

Commit

Permalink
Merge branch 'master' into whatwg-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan committed Jun 13, 2024
2 parents ee0e161 + 92e9dfb commit aafa345
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions httpx/_transports/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,8 @@ async def __aiter__(self) -> typing.AsyncIterator[bytes]:
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",
Expand Down

0 comments on commit aafa345

Please sign in to comment.