MCPcopy
hub / github.com/mitmproxy/mitmproxy / connect

Method connect

mitmproxy/utils/signals.py:69–71  ·  view source on GitHub ↗
(self, receiver: Callable[P, None])

Source from the content-addressed store, hash-verified

67
68class _SyncSignal(Generic[P], _SignalMixin):
69 def connect(self, receiver: Callable[P, None]) -> None:
70 assert not inspect.iscoroutinefunction(receiver)
71 super().connect(receiver)
72
73 def disconnect(self, receiver: Callable[P, None]) -> None:
74 super().disconnect(receiver)

Callers 15

test_optionsFunction · 0.45
test_rollbackFunction · 0.45
test_sync_signalFunction · 0.45
test_signal_weakrefFunction · 0.45
test_async_signalFunction · 0.45
__init__Method · 0.45
test_simpleFunction · 0.45
quic_connectFunction · 0.45
test_order_refreshFunction · 0.45

Calls

no outgoing calls

Tested by 13

test_optionsFunction · 0.36
test_rollbackFunction · 0.36
test_sync_signalFunction · 0.36
test_signal_weakrefFunction · 0.36
test_async_signalFunction · 0.36
__init__Method · 0.36
test_simpleFunction · 0.36
quic_connectFunction · 0.36
test_order_refreshFunction · 0.36