MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/platform/windows.py:317–323  ·  view source on GitHub ↗
(
        self, redirect_request: Callable[[pydivert.Packet], None], filter: str
    )

Source from the content-addressed store, hash-verified

315 trusted_pids: set[int]
316
317 def __init__(
318 self, redirect_request: Callable[[pydivert.Packet], None], filter: str
319 ) -> None:
320 self.tcp_connections = TcpConnectionTable()
321 self.trusted_pids = set()
322 self.redirect_request = redirect_request
323 super().__init__(self.handle, filter)
324
325 def handle(self, packet):
326 client = (packet.src_addr, packet.src_port)

Callers

nothing calls this directly

Calls 3

TcpConnectionTableClass · 0.85
setFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected