From: Tom Christie Date: Thu, 28 Nov 2019 12:33:53 +0000 (+0000) Subject: Drop erronous references to AsyncClient (#559) X-Git-Tag: 0.9.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=296c9b459eb71218ab488a5ae8b2dd5ca7f7031a;p=thirdparty%2Fhttpx.git Drop erronous references to AsyncClient (#559) --- diff --git a/docs/advanced.md b/docs/advanced.md index 5b891841..7f1fc524 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -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)