ProxyConfig constructor

ProxyConfig({
  1. ProxyRules? rules,
  2. PacScript? pacScript,
  3. required Mode mode,
})

Implementation

ProxyConfig({
  /// The proxy rules describing this configuration. Use this for
  /// 'fixed_servers' mode.
  ProxyRules? rules,

  /// The proxy auto-config (PAC) script for this configuration. Use this for
  /// 'pac_script' mode.
  PacScript? pacScript,

  /// 'direct' = Never use a proxy
  /// 'auto_detect' = Auto detect proxy settings
  /// 'pac_script' = Use specified PAC script
  /// 'fixed_servers' = Manually specify proxy servers
  /// 'system' = Use system proxy settings
  required Mode mode,
}) : _wrapped = $js.ProxyConfig(
        rules: rules?.toJS,
        pacScript: pacScript?.toJS,
        mode: mode.toJS,
      );