MCPcopy
hub / github.com/mitmproxy/mitmproxy / save_settings

Function save_settings

mitmproxy/tools/web/static_viewer.py:41–43  ·  view source on GitHub ↗
(path: pathlib.Path)

Source from the content-addressed store, hash-verified

39
40
41def save_settings(path: pathlib.Path) -> None:
42 with open(str(path / "settings.json"), "w") as f:
43 json.dump(dict(version=version.VERSION), f)
44
45
46def save_flows(path: pathlib.Path, flows: Iterable[flow.Flow]) -> None:

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…