MCPcopy
hub / github.com/mitmproxy/mitmproxy / no_flow_hooks

Function no_flow_hooks

test/mitmproxy/proxy/layers/test_udp.py:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 """
89
90 def no_flow_hooks():
91 assert (
92 Playbook(udp.UDPLayer(tctx, ignore=ignore), hooks=True)
93 << OpenConnection(tctx.server)
94 >> reply(None)
95 >> DataReceived(tctx.client, b"hello!")
96 << SendData(tctx.server, b"hello!")
97 )
98
99 if ignore:
100 no_flow_hooks()

Callers 1

test_ignoreFunction · 0.70

Calls 5

OpenConnectionClass · 0.90
DataReceivedClass · 0.90
SendDataClass · 0.90
PlaybookClass · 0.85
replyClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…