Duplicates the specified flows, and sets the focus to the first duplicate.
(self, flows: Sequence[mitmproxy.flow.Flow])
| 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: |