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

Method configure

mitmproxy/addons/maplocal.py:98–109  ·  view source on GitHub ↗
(self, updated)

Source from the content-addressed store, hash-verified

96 )
97
98 def configure(self, updated):
99 if "map_local" in updated:
100 self.replacements = []
101 for option in ctx.options.map_local:
102 try:
103 spec = parse_map_local_spec(option)
104 except ValueError as e:
105 raise exceptions.OptionsError(
106 f"Cannot parse map_local option {option}: {e}"
107 ) from e
108
109 self.replacements.append(spec)
110
111 def request(self, flow: http.HTTPFlow) -> None:
112 if flow.response or flow.error or not flow.live:

Callers

nothing calls this directly

Calls 2

parse_map_local_specFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected