Skip to content

Commit 35049ae

Browse files
docs(readme): fix http client proxies example (#541)
1 parent a6bbbbf commit 35049ae

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
@@ -379,18 +379,19 @@ can also get all the extra fields on the Pydantic model as a dict with
379379

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

382-
- Support for proxies
383-
- Custom transports
382+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
383+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
384384
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
385385

386386
```python
387+
import httpx
387388
from finch import Finch, DefaultHttpxClient
388389

389390
client = Finch(
390391
# Or use the `FINCH_BASE_URL` env var
391392
base_url="http://my.test.server.example.com:8083",
392393
http_client=DefaultHttpxClient(
393-
proxies="http://my.test.proxy.example.com",
394+
proxy="http://my.test.proxy.example.com",
394395
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
395396
),
396397
)

0 commit comments

Comments
 (0)