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

Method configure

mitmproxy/addons/mapremote.py:45–56  ·  view source on GitHub ↗
(self, updated)

Source from the content-addressed store, hash-verified

43 )
44
45 def configure(self, updated):
46 if "map_remote" in updated:
47 self.replacements = []
48 for option in ctx.options.map_remote:
49 try:
50 spec = parse_map_remote_spec(option)
51 except ValueError as e:
52 raise exceptions.OptionsError(
53 f"Cannot parse map_remote option {option}: {e}"
54 ) from e
55
56 self.replacements.append(spec)
57
58 def request(self, flow: http.HTTPFlow) -> None:
59 if flow.response or flow.error or not flow.live:

Callers

nothing calls this directly

Calls 2

parse_map_remote_specFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected