Dart Documentationchrome.proxyProxyConfig

ProxyConfig class

An object encapsulating a complete proxy configuration.

class ProxyConfig extends ChromeObject {
 ProxyConfig({ProxyRules rules, PacScript pacScript, String mode}) {
   if (rules != null) this.rules = rules;
   if (pacScript != null) this.pacScript = pacScript;
   if (mode != null) this.mode = mode;
 }
 ProxyConfig.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The proxy rules describing this configuration. Use this for 'fixed_servers'
  * mode.
  */
 ProxyRules get rules => _createProxyRules(this.jsProxy['rules']);
 set rules(ProxyRules value) => this.jsProxy['rules'] = jsify(value);

 /**
  * The proxy auto-config (PAC) script for this configuration. Use this for
  * 'pac_script' mode.
  */
 PacScript get pacScript => _createPacScript(this.jsProxy['pacScript']);
 set pacScript(PacScript value) => this.jsProxy['pacScript'] = jsify(value);

 /**
  * 'direct' = Never use a proxy<br>'auto_detect' = Auto detect proxy
  * settings<br>'pac_script' = Use specified PAC script<br>'fixed_servers' =
  * Manually specify proxy servers<br>'system' = Use system proxy settings
  * enum of `direct`, `auto_detect`, `pac_script`, `fixed_servers`, `system`
  */
 String get mode => this.jsProxy['mode'];
 set mode(String value) => this.jsProxy['mode'] = value;
}

Extends

ChromeObject > ProxyConfig

Constructors

new ProxyConfig({ProxyRules rules, PacScript pacScript, String mode}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
ProxyConfig({ProxyRules rules, PacScript pacScript, String mode}) {
 if (rules != null) this.rules = rules;
 if (pacScript != null) this.pacScript = pacScript;
 if (mode != null) this.mode = mode;
}

new ProxyConfig.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
ProxyConfig.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String mode #

'direct' = Never use a proxy<br>'autodetect' = Auto detect proxy settings<br>'pacscript' = Use specified PAC script<br>'fixed_servers' = Manually specify proxy servers<br>'system' = Use system proxy settings enum of direct, auto_detect, pac_script, fixed_servers, system

String get mode => this.jsProxy['mode'];
set mode(String value) => this.jsProxy['mode'] = value;

PacScript pacScript #

The proxy auto-config (PAC) script for this configuration. Use this for 'pac_script' mode.

PacScript get pacScript => _createPacScript(this.jsProxy['pacScript']);
set pacScript(PacScript value) => this.jsProxy['pacScript'] = jsify(value);

ProxyRules rules #

The proxy rules describing this configuration. Use this for 'fixed_servers' mode.

ProxyRules get rules => _createProxyRules(this.jsProxy['rules']);
set rules(ProxyRules value) => this.jsProxy['rules'] = jsify(value);

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();