MCPcopy
hub / github.com/mitmproxy/mitmproxy / duplicate

Method duplicate

mitmproxy/addons/view.py:417–426  ·  view source on GitHub ↗

Duplicates the specified flows, and sets the focus to the first duplicate.

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

Source from the content-addressed store, hash-verified

415 # Flows
416 @command.command("view.flows.duplicate")
417 def duplicate(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:
418 """
419 Duplicates the specified flows, and sets the focus to the first
420 duplicate.
421 """
422 dups = [f.copy() for f in flows]
423 if dups:
424 self.add(dups)
425 self.focus.flow = dups[0]
426 logging.log(ALERT, "Duplicated %s flows" % len(dups))
427
428 @command.command("view.flows.remove")
429 def remove(self, flows: Sequence[mitmproxy.flow.Flow]) -> None:

Callers 5

test_duplicateFunction · 0.95
oFunction · 0.80
aFunction · 0.80
onKeyDownFunction · 0.80

Calls 3

addMethod · 0.95
copyMethod · 0.45
logMethod · 0.45

Tested by 1

test_duplicateFunction · 0.76