MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / load_file

Method load_file

mitmproxy/addons/serverplayback.py:158–163  ·  view source on GitHub ↗
(self, path: mitmproxy.types.Path)

Source from the content-addressed store, hash-verified

156
157 @command.command("replay.server.file")
158 def load_file(self, path: mitmproxy.types.Path) -> None:
159 try:
160 flows = io.read_flows_from_paths([path])
161 except exceptions.FlowReadException as e:
162 raise exceptions.CommandError(str(e))
163 self.load_flows(flows)
164
165 @command.command("replay.server.stop")
166 def clear(self) -> None:

Callers 1

test_load_fileFunction · 0.95

Calls 1

load_flowsMethod · 0.95

Tested by 1

test_load_fileFunction · 0.76