EnvironmentProxyConfig class

Proxy configuration taken from the conventional environment variables (http_proxy, https_proxy, all_proxy, no_proxy, lower or upper case; the lower-case form wins, as in curl).

Annotations

Constructors

EnvironmentProxyConfig({ProxyEntry? httpProxy, ProxyEntry? httpsProxy, ProxyEntry? allProxy, ProxyBypassRules noProxy = ProxyBypassRules.none})
Creates a configuration from already parsed values.
const
EnvironmentProxyConfig.fromEnvironment(Map<String, String> environment)
Reads the variables from environment (usually Platform.environment).
factory

Properties

allProxy → ProxyEntry?
Proxy for any scheme without a specific variable.
final
hashCode → int
The hash code for this object.
no setterinherited
hasProxy → bool
Whether any proxy variable is set.
no setter
httpProxy → ProxyEntry?
Proxy for http:// and ws:// URLs.
final
httpsProxy → ProxyEntry?
Proxy for https:// and wss:// URLs.
final
noProxy → ProxyBypassRules
Hosts that must be reached directly.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

entriesFor(Uri uri) → List<ProxyEntry>?
The routes for uri: null when no variable applies to its scheme, [DIRECT] when noProxy matches, otherwise the configured proxy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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