ProxyConfiguration class

Comprehensive proxy configuration holder.

Constructors

ProxyConfiguration({String? httpsProxy, String? httpProxy, String? noProxy, MTLSConfig? mtlsConfig, List<String>? caCertificates, bool proxyResolvesHosts = false})
ProxyConfiguration.fromEnvironment([EnvLike? env])
Create from current environment.
factory

Properties

caCertificates List<String>?
CA certificates for TLS verification.
final
effectiveProxy String?
The effective proxy URL (prefers HTTPS over HTTP).
no setter
hasCustomCA bool
Whether custom CA certificates are configured.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasMTLS bool
Whether mTLS is configured.
no setter
hasProxy bool
Whether any proxy is configured.
no setter
hasTLSCustomization bool
Whether any TLS customization is present.
no setter
httpProxy String?
HTTP proxy URL.
final
httpsProxy String?
HTTPS proxy URL.
final
mtlsConfig MTLSConfig?
mTLS configuration for client certificates.
final
noProxy String?
NO_PROXY comma-separated list.
final
proxyResolvesHosts bool
Whether the proxy should resolve hostnames (for sandbox environments).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createHttpClient() HttpClient
Create an HttpClient configured with this proxy setup.
describe() String
Returns a description of this configuration for debugging.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldBypass(String url) bool
Check if a URL should bypass this proxy configuration.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited