Skip to content

Commit 8fac1ff

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
docs(readme): fix http client proxies example (#647)
1 parent 6e27771 commit 8fac1ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

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

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

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

407407
```python
408+
import httpx
408409
from lithic import Lithic, DefaultHttpxClient
409410

410411
client = Lithic(
411412
# Or use the `LITHIC_BASE_URL` env var
412413
base_url="http://my.test.server.example.com:8083",
413414
http_client=DefaultHttpxClient(
414-
proxies="http://my.test.proxy.example.com",
415+
proxy="http://my.test.proxy.example.com",
415416
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
416417
),
417418
)

0 commit comments

Comments
 (0)