|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2016 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing an URL interceptor base class. |
|
8 """ |
|
9 |
|
10 from PyQt6.QtCore import QObject |
|
11 |
|
12 |
|
13 class UrlInterceptor(QObject): |
|
14 """ |
|
15 Class implementing an URL interceptor base class. |
|
16 """ |
|
17 def __init__(self, parent=None): |
|
18 """ |
|
19 Constructor |
|
20 |
|
21 @param parent referemce to the parent object |
|
22 @type QObject |
|
23 """ |
|
24 super().__init__(parent) |
|
25 |
|
26 def interceptRequest(self, info): |
|
27 """ |
|
28 Public method to intercept a request. |
|
29 |
|
30 @param info request info object |
|
31 @type QWebEngineUrlRequestInfo |
|
32 """ |
|
33 pass |