Skip to content

Commit db48031

Browse files
docs(readme): fix http client proxies example (#456)
1 parent da23d38 commit db48031

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

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

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

404404
```python
405+
import httpx
405406
from orb import Orb, DefaultHttpxClient
406407

407408
client = Orb(
408409
# Or use the `ORB_BASE_URL` env var
409410
base_url="http://my.test.server.example.com:8083",
410411
http_client=DefaultHttpxClient(
411-
proxies="http://my.test.proxy.example.com",
412+
proxy="http://my.test.proxy.example.com",
412413
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
413414
),
414415
)

0 commit comments

Comments
 (0)