|
13 | 13 | from abc import ABC, abstractmethod |
14 | 14 | from typing import TYPE_CHECKING, List, Union, Optional |
15 | 15 |
|
16 | | -from .mixins import TlsInterceptionPropertyMixin |
17 | 16 | from .parser import HttpParser |
18 | 17 | from .connection import HttpClientConnection |
19 | 18 | from ..core.event import EventQueue |
20 | 19 | from .descriptors import DescriptorsHandlerMixin |
| 20 | +from ..common.utils import tls_interception_enabled |
21 | 21 |
|
22 | 22 |
|
23 | 23 | if TYPE_CHECKING: # pragma: no cover |
|
26 | 26 |
|
27 | 27 | class HttpProtocolHandlerPlugin( |
28 | 28 | DescriptorsHandlerMixin, |
29 | | - TlsInterceptionPropertyMixin, |
30 | 29 | ABC, |
31 | 30 | ): |
32 | 31 | """Base HttpProtocolHandler Plugin class. |
@@ -59,7 +58,6 @@ def __init__( |
59 | 58 | event_queue: Optional[EventQueue] = None, |
60 | 59 | upstream_conn_pool: Optional['UpstreamConnectionPool'] = None, |
61 | 60 | ): |
62 | | - super().__init__(uid, flags, client, event_queue, upstream_conn_pool) |
63 | 61 | self.uid: str = uid |
64 | 62 | self.flags: argparse.Namespace = flags |
65 | 63 | self.client: HttpClientConnection = client |
@@ -95,3 +93,7 @@ def on_client_connection_close(self) -> None: |
95 | 93 | perform any cleanup work here. |
96 | 94 | """ |
97 | 95 | pass # pragma: no cover |
| 96 | + |
| 97 | + @property |
| 98 | + def tls_interception_enabled(self) -> bool: |
| 99 | + return tls_interception_enabled(self.flags) |
0 commit comments