- Support for proxies
- Custom transports
- Additional advanced functionality
Using DefaultHttpxClient
When customizing the HTTP client, useDefaultHttpxClient to preserve the SDK’s default settings for timeouts, connection limits, and redirect handling:
http_client with your own instance of httpx.Client, httpx’s defaults will be used instead of the SDK’s defaults. Using DefaultHttpxClient ensures you retain:
- Default timeout of 60 seconds
- Default connection limits
- Automatic redirect following
Configuring proxies
You can configure HTTP proxies by passing theproxy parameter:
Custom transports
You can customize the transport layer for advanced networking configurations:Per-request customization
You can also customize the client on a per-request basis usingwith_options():
Base URL configuration
You can override the base URL using theDEDALUS_BASE_URL environment variable or the base_url parameter: