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

Method get_focus

mitmproxy/tools/console/flowlist.py:61–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self._get.cache_clear()
60
61 def get_focus(self):
62 if not self.master.view.focus.flow:
63 return None, 0
64 f = FlowItem(self.master, self.master.view.focus.flow)
65 return f, self.master.view.focus.index
66
67 def set_focus(self, index):
68 if self.master.commands.execute("view.properties.inbounds %d" % index):

Callers

nothing calls this directly

Calls 1

FlowItemClass · 0.85

Tested by

no test coverage detected