MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / get_data

Method get_data

mitmproxy/tools/console/grideditor/col_bytes.py:43–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 super().__init__(w)
42
43 def get_data(self) -> bytes:
44 txt = self._w.base_widget.get_text()[0].strip()
45 try:
46 return strutils.escaped_str_to_bytes(txt)
47 except ValueError:
48 signals.status_message.send(message="Invalid data.")
49 raise

Callers

nothing calls this directly

Calls 2

get_textMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected