Skip to content

Commit 3f9fd35

Browse files
docs(readme): fix http client proxies example (#2252)
1 parent ff3807c commit 3f9fd35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -347,18 +347,19 @@ can also get all the extra fields on the Pydantic model as a dict with
347347

348348
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
349349

350-
- Support for proxies
351-
- Custom transports
350+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
351+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
352352
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
353353

354354
```python
355+
import httpx
355356
from cloudflare import Cloudflare, DefaultHttpxClient
356357

357358
client = Cloudflare(
358359
# Or use the `CLOUDFLARE_BASE_URL` env var
359360
base_url="http://my.test.server.example.com:8083",
360361
http_client=DefaultHttpxClient(
361-
proxies="http://my.test.proxy.example.com",
362+
proxy="http://my.test.proxy.example.com",
362363
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
363364
),
364365
)

0 commit comments

Comments
 (0)