Skip to content

Commit

Permalink
docs(readme): fix http client proxies example (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 11, 2024
1 parent 9f6bfa1 commit d3e3918
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 @@ -284,18 +284,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 studio_sdk import StudioSDK, DefaultHttpxClient

client = StudioSDK(
# Or use the `STUDIO_SDK_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 d3e3918

Please sign in to comment.