File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -262,18 +262,19 @@ can also get all the extra fields on the Pydantic model as a dict with
262262
263263You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
264264
265- - Support for proxies
266- - Custom transports
265+ - Support for [ proxies] ( https://www.python-httpx.org/advanced/proxies/ )
266+ - Custom [ transports] ( https://www.python-httpx.org/advanced/transports/ )
267267- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
268268
269269``` python
270+ import httpx
270271from onebusaway import OnebusawaySDK, DefaultHttpxClient
271272
272273client = OnebusawaySDK(
273274 # Or use the `ONEBUSAWAY_SDK_BASE_URL` env var
274275 base_url = " http://my.test.server.example.com:8083" ,
275276 http_client = DefaultHttpxClient(
276- proxies = " http://my.test.proxy.example.com" ,
277+ proxy = " http://my.test.proxy.example.com" ,
277278 transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
278279 ),
279280)
You can’t perform that action at this time.
0 commit comments