ProxyRules class
An object encapsulating the set of proxy rules for all protocols. Use either 'singleProxy' or (a subset of) 'proxyForHttp', 'proxyForHttps', 'proxyForFtp' and 'fallbackProxy'.
class ProxyRules extends ChromeObject {
ProxyRules({ProxyServer singleProxy, ProxyServer proxyForHttp, ProxyServer proxyForHttps, ProxyServer proxyForFtp, ProxyServer fallbackProxy, List<String> bypassList}) {
if (singleProxy != null) this.singleProxy = singleProxy;
if (proxyForHttp != null) this.proxyForHttp = proxyForHttp;
if (proxyForHttps != null) this.proxyForHttps = proxyForHttps;
if (proxyForFtp != null) this.proxyForFtp = proxyForFtp;
if (fallbackProxy != null) this.fallbackProxy = fallbackProxy;
if (bypassList != null) this.bypassList = bypassList;
}
ProxyRules.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* The proxy server to be used for all per-URL requests (that is http, https,
* and ftp).
*/
ProxyServer get singleProxy => _createProxyServer(this.jsProxy['singleProxy']);
set singleProxy(ProxyServer value) => this.jsProxy['singleProxy'] = jsify(value);
/**
* The proxy server to be used for HTTP requests.
*/
ProxyServer get proxyForHttp => _createProxyServer(this.jsProxy['proxyForHttp']);
set proxyForHttp(ProxyServer value) => this.jsProxy['proxyForHttp'] = jsify(value);
/**
* The proxy server to be used for HTTPS requests.
*/
ProxyServer get proxyForHttps => _createProxyServer(this.jsProxy['proxyForHttps']);
set proxyForHttps(ProxyServer value) => this.jsProxy['proxyForHttps'] = jsify(value);
/**
* The proxy server to be used for FTP requests.
*/
ProxyServer get proxyForFtp => _createProxyServer(this.jsProxy['proxyForFtp']);
set proxyForFtp(ProxyServer value) => this.jsProxy['proxyForFtp'] = jsify(value);
/**
* The proxy server to be used for everthing else or if any of the specific
* proxyFor... is not specified.
*/
ProxyServer get fallbackProxy => _createProxyServer(this.jsProxy['fallbackProxy']);
set fallbackProxy(ProxyServer value) => this.jsProxy['fallbackProxy'] = jsify(value);
/**
* List of servers to connect to without a proxy server.
*/
List<String> get bypassList => listify(this.jsProxy['bypassList']);
set bypassList(List<String> value) => this.jsProxy['bypassList'] = jsify(value);
}
Extends
ChromeObject > ProxyRules
Constructors
new ProxyRules({ProxyServer singleProxy, ProxyServer proxyForHttp, ProxyServer proxyForHttps, ProxyServer proxyForFtp, ProxyServer fallbackProxy, List<String> bypassList}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
ProxyRules({ProxyServer singleProxy, ProxyServer proxyForHttp, ProxyServer proxyForHttps, ProxyServer proxyForFtp, ProxyServer fallbackProxy, List<String> bypassList}) {
if (singleProxy != null) this.singleProxy = singleProxy;
if (proxyForHttp != null) this.proxyForHttp = proxyForHttp;
if (proxyForHttps != null) this.proxyForHttps = proxyForHttps;
if (proxyForFtp != null) this.proxyForFtp = proxyForFtp;
if (fallbackProxy != null) this.fallbackProxy = fallbackProxy;
if (bypassList != null) this.bypassList = bypassList;
}
new ProxyRules.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
ProxyRules.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
List<String> bypassList #
List of servers to connect to without a proxy server.
List<String> get bypassList => listify(this.jsProxy['bypassList']);
set bypassList(List<String> value) => this.jsProxy['bypassList'] = jsify(value);
ProxyServer fallbackProxy #
The proxy server to be used for everthing else or if any of the specific proxyFor... is not specified.
ProxyServer get fallbackProxy => _createProxyServer(this.jsProxy['fallbackProxy']);
set fallbackProxy(ProxyServer value) => this.jsProxy['fallbackProxy'] = jsify(value);
ProxyServer proxyForFtp #
The proxy server to be used for FTP requests.
ProxyServer get proxyForFtp => _createProxyServer(this.jsProxy['proxyForFtp']);
set proxyForFtp(ProxyServer value) => this.jsProxy['proxyForFtp'] = jsify(value);
ProxyServer proxyForHttp #
The proxy server to be used for HTTP requests.
ProxyServer get proxyForHttp => _createProxyServer(this.jsProxy['proxyForHttp']);
set proxyForHttp(ProxyServer value) => this.jsProxy['proxyForHttp'] = jsify(value);
ProxyServer proxyForHttps #
The proxy server to be used for HTTPS requests.
ProxyServer get proxyForHttps => _createProxyServer(this.jsProxy['proxyForHttps']);
set proxyForHttps(ProxyServer value) => this.jsProxy['proxyForHttps'] = jsify(value);
ProxyServer singleProxy #
The proxy server to be used for all per-URL requests (that is http, https, and ftp).
ProxyServer get singleProxy => _createProxyServer(this.jsProxy['singleProxy']);
set singleProxy(ProxyServer value) => this.jsProxy['singleProxy'] = jsify(value);
Methods
String toString() #
Returns a string representation of this object.
String toString() => jsProxy.toString();