diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2026-09-01 07:54:16 +0200 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2026-09-01 07:54:16 +0200 |
| commit | 0a4fa559e44ed3e77f723092feab977539b8aab0 (patch) | |
| tree | ab5a94d816ae176f9f1319222b26cc1758a3c764 /test/unixstreamsrvr.lua | |
| parent | 3581b58b9d5c09e3e37b7e20b41205ee3553aaa4 (diff) | |
| download | luasocket-http-headers-callback.tar.gz luasocket-http-headers-callback.tar.bz2 luasocket-http-headers-callback.zip | |
Address PR review: pass raw socket to headers callback, use ok/err return conventionhttp-headers-callback
Rename response_headers to headers_callback, pass the raw connection as a
4th argument (for use cases like WebSocket upgrade handoff), and switch its
return contract to the idiomatic ok/err shape used elsewhere in this file:
truthy ok continues (optionally swapping in a new sink), falsy ok closes the
connection and propagates the callback's error via socket.protect instead of
faking a success return.
Claude-Session: https://claude.ai/code/session_01S4imKCU4hxDg96DXj9hxSB
Diffstat (limited to 'test/unixstreamsrvr.lua')
0 files changed, 0 insertions, 0 deletions
