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

Function format_left_indicators

mitmproxy/tools/console/common.py:349–360  ·  view source on GitHub ↗
(*, focused: bool, intercepted: bool, timestamp: float)

Source from the content-addressed store, hash-verified

347
348
349def format_left_indicators(*, focused: bool, intercepted: bool, timestamp: float):
350 indicators: list[str | tuple[str, str]] = []
351 if focused:
352 indicators.append(("focus", ">>"))
353 else:
354 indicators.append(" ")
355 pretty_timestamp = human.format_timestamp(timestamp)[-8:]
356 if intercepted:
357 indicators.append(("intercept", pretty_timestamp))
358 else:
359 indicators.append(("text", pretty_timestamp))
360 return "fixed", 10, urwid.Text(indicators)
361
362
363def format_right_indicators(

Callers 3

format_http_flow_tableFunction · 0.85
format_message_flowFunction · 0.85
format_dns_flowFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…