Skip to content

Commit 079665c

Browse files
docs(readme): fix http client proxies example
1 parent 5ce555b commit 079665c

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

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

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

275275
```python
276+
import httpx
276277
from gitpod import Gitpod, DefaultHttpxClient
277278

278279
client = Gitpod(
279280
# Or use the `GITPOD_BASE_URL` env var
280281
base_url="http://my.test.server.example.com:8083",
281282
http_client=DefaultHttpxClient(
282-
proxies="http://my.test.proxy.example.com",
283+
proxy="http://my.test.proxy.example.com",
283284
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
284285
),
285286
)

0 commit comments

Comments
 (0)