(path, data, request_id, link_id, remote_identity, requested_at)
| 37 | |
| 38 | |
| 39 | def echo_handler(path, data, request_id, link_id, remote_identity, requested_at): |
| 40 | ok = (data == EXPECTED_PAYLOAD) |
| 41 | print(f"[python] handler called: path={path!r} data_len={len(data)} match={ok}", |
| 42 | flush=True) |
| 43 | state["request_seen"] = True |
| 44 | state["request_ok"] = ok |
| 45 | # Echo the bytes back regardless — easier to debug a mismatch on the |
| 46 | # client side if both ends see the wrong content. |
| 47 | return data |
| 48 | |
| 49 | |
| 50 | def on_link_established(link): |
nothing calls this directly
no outgoing calls
no test coverage detected