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

Method add

mitmproxy/command.py:192–193  ·  view source on GitHub ↗
(self, path: str, func: Callable)

Source from the content-addressed store, hash-verified

190 )
191
192 def add(self, path: str, func: Callable):
193 self.commands[path] = Command(self, path, func)
194
195 @functools.lru_cache(maxsize=128)
196 def parse_partial(

Callers 2

test_simpleFunction · 0.95
collect_commandsMethod · 0.95

Calls 1

CommandClass · 0.70

Tested by 1

test_simpleFunction · 0.76