MCPcopy
hub / github.com/mitmproxy/mitmproxy / receive_data

Method receive_data

test/mitmproxy/proxy/test_tunnel.py:59–62  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

57 yield SendData(self.tunnel_connection, b"tunneled-" + data)
58
59 def receive_data(self, data: bytes) -> layer.CommandGenerator[None]:
60 yield from self.event_to_child(
61 DataReceived(self.conn, data.replace(b"tunneled-", b""))
62 )
63
64
65@pytest.mark.parametrize("success", ["success", "fail"])

Callers

nothing calls this directly

Calls 3

DataReceivedClass · 0.90
event_to_childMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected