• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Class (ProxyRule)
2
3Implements a **ProxyRule** object used in [insertProxyRule](./arkts-apis-webview-ProxyConfig.md#insertproxyrule15).
4
5> **NOTE**
6>
7> - The initial APIs of this module are supported since API version 9. Updates will be marked with a superscript to indicate their earliest API version.
8>
9> - The initial APIs of this class are supported since API version 15.
10>
11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
12
13## getSchemeFilter<sup>15+</sup>
14
15getSchemeFilter(): ProxySchemeFilter
16
17Obtains the **ProxySchemeFilter** information in the proxy rule.
18
19**System capability**: SystemCapability.Web.Webview.Core
20
21**Return value**
22
23| Type  | Description                     |
24| ------ | ------------------------- |
25| [ProxySchemeFilter](./arkts-apis-webview-e.md#proxyschemefilter15) | **ProxySchemeFilter** in the proxy rule.|
26
27**Example**
28
29For details about the sample code, see [removeProxyOverride](./arkts-apis-webview-ProxyController.md#removeproxyoverride15).
30
31## getUrl<sup>15+</sup>
32
33getUrl(): string
34
35Obtains the URL specified in the proxy rule.
36
37**System capability**: SystemCapability.Web.Webview.Core
38
39**Return value**
40
41| Type  | Description                     |
42| ------ | ------------------------- |
43| string | URL specified in the proxy rule.|
44
45**Example**
46
47For details about the sample code, see [removeProxyOverride](./arkts-apis-webview-ProxyController.md#removeproxyoverride15).
48