MCPcopy
hub / github.com/mitmproxy/mitmproxy / format_right_indicators

Function format_right_indicators

mitmproxy/tools/console/common.py:363–377  ·  view source on GitHub ↗
(
    *,
    replay: bool,
    marked: str,
)

Source from the content-addressed store, hash-verified

361
362
363def format_right_indicators(
364 *,
365 replay: bool,
366 marked: str,
367):
368 indicators: list[str | tuple[str, str]] = []
369 if replay:
370 indicators.append(("replay", SYMBOL_REPLAY))
371 else:
372 indicators.append(" ")
373 if bool(marked):
374 indicators.append(("mark", render_marker(marked)))
375 else:
376 indicators.append(" ")
377 return "fixed", 3, urwid.Text(indicators)
378
379
380@lru_cache(maxsize=800)

Callers 4

format_http_flow_listFunction · 0.85
format_http_flow_tableFunction · 0.85
format_message_flowFunction · 0.85
format_dns_flowFunction · 0.85

Calls 2

render_markerFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…