GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.html2.WebViewHandler — wxPython 4.3.2 Docs
|
Constructor. |
|
Sets a custom security URL. |
|
When using the edge backend handler urls are https urls with a virtual host. |
Properties Summary¶See |
|
See |
|
See |
Class API¶Possible constructors:
WebViewHandler(scheme) -> None
The base class for handling custom schemes in WebView, for example to allow virtual file system support.
Constructor.
Takes the name of the scheme that will be handled by this class for example file or zip .
scheme (string)
None
uri (string)
FSFile
A pointer to the file represented by uri , or nullptr. The caller takes ownership of the returned pointer and is responsible for deleting it.
str
The name of the scheme, as passed to the constructor.
str
The custom security URL. Only used by WebViewIE .
Added in version 4.1/wxWidgets-3.1.5.
str
The virtual host of this handler
Added in version 4.3/wxWidgets-3.3.0.
See also
Sets a custom security URL.
Only used by WebViewIE .
url (string)
None
Added in version 4.1/wxWidgets-3.1.5.
When using the edge backend handler urls are https urls with a virtual host.
As default name.wxsite is used as the virtual hostname. If you customize this host, use a non existing site (ideally a reserved subdomain of a domain you control). If localassests.domain.example is used the handlers content will be available under https://localassets.domain.example/
This has to be set before registering the handler via wx.html2.WebView.RegisterHandler .
host (string)
None
Added in version 4.3/wxWidgets-3.3.0.
See GetSecurityURL and SetSecurityURL
See GetVirtualHost and SetVirtualHost