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

Method get

mitmproxy/tools/web/app.py:757–775  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

755
756class Commands(RequestHandler):
757 def get(self) -> None:
758 commands = {}
759 for name, cmd in self.master.commands.commands.items():
760 commands[name] = {
761 "help": cmd.help,
762 "parameters": [
763 {
764 "name": param.name,
765 "type": command.typename(param.type),
766 "kind": str(param.kind),
767 }
768 for param in cmd.parameters
769 ],
770 "return_type": command.typename(cmd.return_type)
771 if cmd.return_type
772 else None,
773 "signature_help": cmd.signature_help(),
774 }
775 self.write(commands)
776
777
778class ExecuteCommand(RequestHandler):

Callers

nothing calls this directly

Calls 3

signature_helpMethod · 0.80
itemsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected