MCPcopy
hub / github.com/mitmproxy/mitmproxy / kill

Method kill

mitmproxy/addons/core.py:93–103  ·  view source on GitHub ↗

Kill running flows.

(self, flows: Sequence[flow.Flow])

Source from the content-addressed store, hash-verified

91
92 @command.command("flow.kill")
93 def kill(self, flows: Sequence[flow.Flow]) -> None:
94 """
95 Kill running flows.
96 """
97 updated = []
98 for f in flows:
99 if f.killable:
100 f.kill()
101 updated.append(f)
102 logger.log(ALERT, "Killed %s flows." % len(updated))
103 ctx.master.addons.trigger(hooks.UpdateHook(updated))
104
105 # FIXME: this will become view.revert later
106 @command.command("flow.revert")

Callers 1

test_killFunction · 0.95

Calls 3

triggerMethod · 0.80
appendMethod · 0.45
logMethod · 0.45

Tested by 1

test_killFunction · 0.76