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

Method _format_ws_message

mitmproxy/websocket.py:95–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.type = Opcode(typ)
94
95 def _format_ws_message(self) -> bytes:
96 if self.from_client:
97 return b"[OUTGOING] " + self.content
98 else:
99 return b"[INCOMING] " + self.content
100
101 def __repr__(self):
102 if self.type == Opcode.TEXT:

Callers 2

Calls

no outgoing calls

Tested by 1