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

Method handle

mitmproxy/tools/console/keymap.py:157–165  ·  view source on GitHub ↗

Returns the key if it has not been handled, or None.

(self, context: str, key: str)

Source from the content-addressed store, hash-verified

155 return single + multi
156
157 def handle(self, context: str, key: str) -> str | None:
158 """
159 Returns the key if it has not been handled, or None.
160 """
161 b = self.get(context, key) or self.get("global", key)
162 if b:
163 self.executor(b.command)
164 return None
165 return key
166
167 def handle_only(self, context: str, key: str) -> str | None:
168 """

Callers 3

test_bindFunction · 0.95
keypressMethod · 0.45
keypressMethod · 0.45

Calls 1

getMethod · 0.95

Tested by 1

test_bindFunction · 0.76