Skip to content

Commit

Permalink
docs(readme): fix http client proxies example (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 10, 2024
1 parent 43ea1de commit 30cacbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,18 +351,19 @@ can also get all the extra fields on the Pydantic model as a dict with

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

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

```python
import httpx
from honcho import Honcho, DefaultHttpxClient

client = Honcho(
# Or use the `HONCHO_BASE_URL` env var
base_url="http://my.test.server.example.com:8083",
http_client=DefaultHttpxClient(
proxies="http://my.test.proxy.example.com",
proxy="http://my.test.proxy.example.com",
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
),
)
Expand Down

0 comments on commit 30cacbf

Please sign in to comment.