bypassRules property

List<String> bypassRules
getter/setter pair

List of bypass rules.

A bypass rule describes URLs that should skip proxy override settings and make a direct connection instead. These can be URLs or IP addresses. Wildcards are accepted. For instance, the rule "*example.com" would mean that requests to "http://example.com" and "www.example.com" would not be directed to any proxy, instead, would be made directly to the origin specified by the URL.

Officially Supported Platforms/Implementations:

  • Android WebView
  • Linux WPE WebKit (Official API - webkit_network_proxy_settings_new (ignore_hosts)):
    • Mapped to ignore_hosts; bypass rules are passed as host patterns to WebKitNetworkProxySettings.
  • Windows WebView2 (Official API - CoreWebView2EnvironmentOptions.AdditionalBrowserArguments):
    • Mapped to the WebView2 proxy-bypass-list argument at environment creation.

Implementation

List<String> bypassRules;