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

Method doread

mitmproxy/addons/readfile.py:70–74  ·  view source on GitHub ↗
(self, rfile: str)

Source from the content-addressed store, hash-verified

68 raise exceptions.FlowReadException(str(e)) from e
69
70 async def doread(self, rfile: str) -> None:
71 try:
72 await self.load_flows_from_path(rfile)
73 except exceptions.FlowReadException as e:
74 logger.exception(f"Failed to read {ctx.options.rfile}: {e}")
75
76 def running(self):
77 if ctx.options.rfile:

Callers 1

runningMethod · 0.95

Calls 1

load_flows_from_pathMethod · 0.95

Tested by

no test coverage detected