Drop erronous references to AsyncClient (#559)

This commit is contained in:
Tom Christie 2019-11-28 12:33:53 +00:00 committed by GitHub
parent abe0799d70
commit 296c9b459e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,11 +423,11 @@ Response <200 OK>
### [asyncio](https://docs.python.org/3/library/asyncio.html) (Default)
By default, `AsyncClient` uses `asyncio` to perform asynchronous operations and I/O calls.
By default, `Client` uses `asyncio` to perform asynchronous operations and I/O calls.
### [trio](https://github.com/python-trio/trio)
To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `AsyncClient`:
To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `Client`:
```python
import trio
@ -435,7 +435,7 @@ import httpx
from httpx.concurrency.trio import TrioBackend
async def main():
async with httpx.AsyncClient(backend=TrioBackend()) as client:
async with httpx.Client(backend=TrioBackend()) as client:
...
trio.run(main)