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

Function parse_map_remote_spec

mitmproxy/addons/mapremote.py:18–26  ·  view source on GitHub ↗
(option: str)

Source from the content-addressed store, hash-verified

16
17
18def parse_map_remote_spec(option: str) -> MapRemoteSpec:
19 spec = MapRemoteSpec(*parse_spec(option))
20
21 try:
22 re.compile(spec.subject)
23 except re.error as e:
24 raise ValueError(f"Invalid regular expression {spec.subject!r} ({e})")
25
26 return spec
27
28
29class MapRemote:

Callers 1

configureMethod · 0.85

Calls 2

parse_specFunction · 0.90
MapRemoteSpecClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…