From: Alexander Pushkov Date: Sat, 30 May 2020 18:43:15 +0000 (+0300) Subject: Remove the UDS section from docs (#1009) X-Git-Tag: 0.14.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed690464671f8cf8b933707c162e65b6f7e7d7e;p=thirdparty%2Fhttpx.git Remove the UDS section from docs (#1009) --- diff --git a/docs/async.md b/docs/async.md index 83dbbb34..b56f0419 100644 --- a/docs/async.md +++ b/docs/async.md @@ -182,20 +182,3 @@ async with httpx.AsyncClient(transport=transport, base_url="http://testserver") ``` See [the ASGI documentation](https://asgi.readthedocs.io/en/latest/specs/www.html#connection-scope) for more details on the `client` and `root_path` keys. - -## Unix Domain Sockets - -The async client provides support for connecting through a unix domain socket via the `uds` parameter. This is useful when making requests to a server that is bound to a socket file rather than an IP address. - -Here's an example requesting the Docker Engine API: - -```python -import httpx - - -async with httpx.AsyncClient(uds="/var/run/docker.sock") as client: - # This request will connect through the socket file. - resp = await client.get("http://localhost/version") -``` - -This functionality is not currently available in the synchronous client.