Load flows from file, and add them to the replay queue.
(self, path: mitmproxy.types.Path)
| 288 | |
| 289 | @command.command("replay.client.file") |
| 290 | def load_file(self, path: mitmproxy.types.Path) -> None: |
| 291 | """ |
| 292 | Load flows from file, and add them to the replay queue. |
| 293 | """ |
| 294 | try: |
| 295 | flows = io.read_flows_from_paths([path]) |
| 296 | except exceptions.FlowReadException as e: |
| 297 | raise exceptions.CommandError(str(e)) |
| 298 | self.start_replay(flows) |