MCPcopy Create free account
hub / github.com/apache/httpd / echo

Function echo

test/modules/http2/ws_server.py:20–29  ·  view source on GitHub ↗
(websocket)

Source from the content-addressed store, hash-verified

18
19
20async def echo(websocket):
21 try:
22 async for message in websocket:
23 try:
24 log.info(f'got request {message}')
25 except Exception as e:
26 log.error(f'error {e} getting path from {message}')
27 await websocket.send(message)
28 except ConnectionClosedError:
29 pass
30
31
32async def on_async_conn(conn):

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected