MCPcopy
hub / github.com/mitmproxy/mitmproxy / cycle

Method cycle

mitmproxy/test/taddons.py:46–54  ·  view source on GitHub ↗

Cycles the flow through the events for the flow. Stops if the flow is intercepted.

(self, addon, f)

Source from the content-addressed store, hash-verified

44 return False
45
46 async def cycle(self, addon, f):
47 """
48 Cycles the flow through the events for the flow. Stops if the flow
49 is intercepted.
50 """
51 for evt in eventsequence.iterate(f):
52 await self.master.addons.invoke_addon(addon, evt)
53 if f.intercepted:
54 return
55
56 def configure(self, addon, **kwargs):
57 """

Callers 9

showFunction · 0.45
test_concurrentMethod · 0.45
test_simpleFunction · 0.45
test_dnsFunction · 0.45
test_tcpFunction · 0.45
test_udpFunction · 0.45
test_websocket_messageFunction · 0.45

Calls 2

invoke_addonMethod · 0.80
iterateMethod · 0.45

Tested by 8

test_concurrentMethod · 0.36
test_simpleFunction · 0.36
test_dnsFunction · 0.36
test_tcpFunction · 0.36
test_udpFunction · 0.36
test_websocket_messageFunction · 0.36