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

Method load_file

mitmproxy/addons/clientplayback.py:290–298  ·  view source on GitHub ↗

Load flows from file, and add them to the replay queue.

(self, path: mitmproxy.types.Path)

Source from the content-addressed store, hash-verified

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)

Callers 1

test_loadFunction · 0.95

Calls 1

start_replayMethod · 0.95

Tested by 1

test_loadFunction · 0.76