ProxyRules constructor
ProxyRules({
- ProxyServer? singleProxy,
- ProxyServer? proxyForHttp,
- ProxyServer? proxyForHttps,
- ProxyServer? proxyForFtp,
- ProxyServer? fallbackProxy,
- List<
String> ? bypassList,
Implementation
ProxyRules({
/// The proxy server to be used for all per-URL requests (that is http,
/// https, and ftp).
ProxyServer? singleProxy,
/// The proxy server to be used for HTTP requests.
ProxyServer? proxyForHttp,
/// The proxy server to be used for HTTPS requests.
ProxyServer? proxyForHttps,
/// The proxy server to be used for FTP requests.
ProxyServer? proxyForFtp,
/// The proxy server to be used for everthing else or if any of the specific
/// proxyFor... is not specified.
ProxyServer? fallbackProxy,
/// List of servers to connect to without a proxy server.
List<String>? bypassList,
}) : _wrapped = $js.ProxyRules(
singleProxy: singleProxy?.toJS,
proxyForHttp: proxyForHttp?.toJS,
proxyForHttps: proxyForHttps?.toJS,
proxyForFtp: proxyForFtp?.toJS,
fallbackProxy: fallbackProxy?.toJS,
bypassList: bypassList?.toJSArray((e) => e),
);