MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / mark_toggle

Method mark_toggle

mitmproxy/addons/core.py:81–90  ·  view source on GitHub ↗

Toggle mark for flows.

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

Source from the content-addressed store, hash-verified

79 # FIXME: this will become view.mark.toggle later
80 @command.command("flow.mark.toggle")
81 def mark_toggle(self, flows: Sequence[flow.Flow]) -> None:
82 """
83 Toggle mark for flows.
84 """
85 for i in flows:
86 if i.marked:
87 i.marked = ""
88 else:
89 i.marked = ":default:"
90 ctx.master.addons.trigger(hooks.UpdateHook(flows))
91
92 @command.command("flow.kill")
93 def kill(self, flows: Sequence[flow.Flow]) -> None:

Callers 1

test_markFunction · 0.95

Calls 1

triggerMethod · 0.80

Tested by 1

test_markFunction · 0.76