describe method

String describe()

Returns a description of this configuration for debugging.

Implementation

String describe() {
  final parts = <String>[];
  if (hasProxy) parts.add('proxy=$effectiveProxy');
  if (noProxy != null) parts.add('noProxy=$noProxy');
  if (hasMTLS) parts.add('mTLS=enabled');
  if (hasCustomCA) parts.add('customCA=${caCertificates!.length} cert(s)');
  if (proxyResolvesHosts) parts.add('proxyResolvesHosts=true');
  return parts.isEmpty
      ? 'ProxyConfiguration(none)'
      : 'ProxyConfiguration(${parts.join(", ")})';
}