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

Method callback

mitmproxy/tools/console/consoleaddons.py:245–251  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

243 """
244
245 def callback(opt):
246 # We're now outside of the call context...
247 repl = [arg.replace("{choice}", opt) for arg in args]
248 try:
249 self.master.commands.call_strings(cmd, repl)
250 except exceptions.CommandError as e:
251 logger.error(str(e))
252
253 self.master.overlay(overlay.Chooser(self.master, prompt, choices, "", callback))
254

Callers 4

__setattr__Method · 0.45
keypressMethod · 0.45
notifyFunction · 0.45
watchMethod · 0.45

Calls 3

call_stringsMethod · 0.80
replaceMethod · 0.45
errorMethod · 0.45

Tested by 1

__setattr__Method · 0.36