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

Method configure

mitmproxy/tools/web/static_viewer.py:108–112  ·  view source on GitHub ↗
(self, updated)

Source from the content-addressed store, hash-verified

106 )
107
108 def configure(self, updated):
109 if "web_static_viewer" in updated and ctx.options.web_static_viewer:
110 flows = io.read_flows_from_paths([ctx.options.rfile])
111 p = pathlib.Path(ctx.options.web_static_viewer).expanduser()
112 self.export(p, flows)
113
114 def export(self, path: pathlib.Path, flows: Iterable[flow.Flow]) -> None:
115 save_static(path)

Callers

nothing calls this directly

Calls 1

exportMethod · 0.95

Tested by

no test coverage detected