Class (ProxyRule)
Implements a ProxyRule object used in insertProxyRule.
NOTE
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.
The initial APIs of this class are supported since API version 15.
The sample effect is subject to the actual device.
getSchemeFilter15+
getSchemeFilter(): ProxySchemeFilter
Obtains the ProxySchemeFilter information in the proxy rule.
System capability: SystemCapability.Web.Webview.Core
Return value
| Type | Description |
|---|---|
| ProxySchemeFilter | ProxySchemeFilter in the proxy rule. |
Example
For details about the sample code, see removeProxyOverride.
getUrl15+
getUrl(): string
Obtains the URL specified in the proxy rule.
System capability: SystemCapability.Web.Webview.Core
Return value
| Type | Description |
|---|---|
| string | URL specified in the proxy rule. |
Example
For details about the sample code, see removeProxyOverride.
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-webview-WebviewController
openharmony 鸿蒙 arkts-apis-webview-t
openharmony 鸿蒙 arkts-apis-webview
openharmony 鸿蒙 capi-arkweb-type-h
openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler
openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager
openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler
openharmony 鸿蒙 capi-web-arkweb-webmessage8h