ProxyRules constructor

ProxyRules({
  1. ProxyServer? singleProxy,
  2. ProxyServer? proxyForHttp,
  3. ProxyServer? proxyForHttps,
  4. ProxyServer? proxyForFtp,
  5. ProxyServer? fallbackProxy,
  6. 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),
      );