Skip to content
Myr

Drop mention of backend selection for AsyncHTTPTransport() in docs (#2019)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

There is no 'backend' parameter to AsyncHTTPTransport and it seems that the backend is detected automatically for anyio as it is for other async libraries.

authored by Denis Laxalde · committed by GitHub · parent c6c8cb1 · Browse files · 1 file+0 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−6 removed

  • other:+0 added−6 removed

1 file+0 added−6 removed

modified:docs/async.md-6 removed
205 unmodified lines
206207anyio.run(main, backend='trio')208```209210When instantiating a transport instance explicitly, for maximum consistency, the same `backend` parameter can be passed to `AsyncHTTPTransport`.211```python212transport = httpx.AsyncHTTPTransport(backend="trio")213```214215210## Calling into Python Web Apps211212Just as `httpx.Client` allows you to call directly into WSGI web applications,213the `httpx.AsyncClient` class allows you to call directly into ASGI web applications.
49 unmodified lines