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

Function _echo_server

test/mitmproxy/proxy/test_mode_servers.py:172–177  ·  view source on GitHub ↗
(self: ConnectionHandler)

Source from the content-addressed store, hash-verified

170
171
172async def _echo_server(self: ConnectionHandler):
173 t = self.transports[self.client]
174 data = await t.reader.read(65535)
175 t.writer.write(data.upper())
176 await t.writer.drain()
177 t.writer.close()
178
179
180async def test_wireguard(tdata, monkeypatch, caplog):

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…