configureGlobalAgents function
void
configureGlobalAgents()
Configure global HTTP agents for proxy and mTLS.
In the Dart port, this sets up the default HttpClient behavior. Callers should use createProxiedHttpClient for specific instances.
Implementation
void configureGlobalAgents() {
final proxyUrl = getProxyUrl();
final mtlsClient = getMTLSHttpClient();
// In Dart, there's no global axios-like interceptor.
// Configuration is applied per-client. This function is provided
// for API compatibility and can be used to trigger cache rebuilds.
if (proxyUrl != null) {
// Proxy is configured - clients should use createProxiedHttpClient
} else if (mtlsClient != null) {
// mTLS without proxy - clients should use getMTLSHttpClient
}
}