Skip to content

Commit f0129cf

Browse files
docs(readme): fix http client proxies example (#69)
1 parent 13d4ec2 commit f0129cf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,18 +283,19 @@ can also get all the extra fields on the Pydantic model as a dict with
283283

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

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

290290
```python
291+
import httpx
291292
from dataherald import Dataherald, DefaultHttpxClient
292293

293294
client = Dataherald(
294295
# Or use the `DATAHERALD_BASE_URL` env var
295296
base_url="http://my.test.server.example.com:8083",
296297
http_client=DefaultHttpxClient(
297-
proxies="http://my.test.proxy.example.com",
298+
proxy="http://my.test.proxy.example.com",
298299
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
299300
),
300301
)

0 commit comments

Comments
 (0)