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

Method load_flows_from_path

mitmproxy/addons/readfile.py:92–98  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

90 """Support the special case of "-" for reading from stdin"""
91
92 async def load_flows_from_path(self, path: str) -> int:
93 if path == "-": # pragma: no cover
94 # Need to think about how to test this. This function is scheduled
95 # onto the event loop, where a sys.stdin mock has no effect.
96 return await self.load_flows(sys.stdin.buffer)
97 else:
98 return await super().load_flows_from_path(path)

Callers

nothing calls this directly

Calls 2

load_flowsMethod · 0.45
load_flows_from_pathMethod · 0.45

Tested by

no test coverage detected