QWebEngineUrlRequestInterceptor — PyQt Documentation v6.9.0 (original) (raw)
PyQt6.QtWebEngineCore.QWebEngineUrlRequestInterceptor
Inherits from QObject.
Description¶
The QWebEngineUrlRequestInterceptor class provides an abstract base class for URL interception.
Implementing the QWebEngineUrlRequestInterceptor interface and installing the interceptor on the profile enables intercepting, blocking, and modifying URL requests before they reach the networking stack of Chromium.
You can install the interceptor on a profile via setUrlRequestInterceptor() or setUrlRequestInterceptor().
When using the Qt WebEngine Widgets Module, acceptNavigationRequest() offers further options to accept or block requests.
See also
interceptRequest(), QWebEngineUrlRequestInfo.
Methods¶
__init__(parent: QObject = None)
Creates a new QWebEngineUrlRequestInterceptor object with p as parent.
interceptRequest(QWebEngineUrlRequestInfo)
TODO