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

Method get_text

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

Source from the content-addressed store, hash-verified

14 urwid.WidgetWrap.__init__(self, w)
15
16 def get_text(self):
17 cols, _ = self.master.ui.get_cols_rows()
18 layout = self.master.options.console_flowlist_layout
19 if layout == "list" or (layout == "default" and cols < 100):
20 render_mode = common.RenderMode.LIST
21 else:
22 render_mode = common.RenderMode.TABLE
23
24 return common.format_flow(
25 self.flow,
26 render_mode=render_mode,
27 focused=self.flow is self.master.view.focus.flow,
28 hostheader=self.master.options.showhost,
29 )
30
31 def selectable(self):
32 return True

Callers 8

__init__Method · 0.95
view_message_streamMethod · 0.45
get_cursor_coordsMethod · 0.45
get_dataMethod · 0.45
prettifyMethod · 0.45
flow_entryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected