aboutsummaryrefslogtreecommitdiff
path: root/samples/dict.lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2026-09-01 07:54:16 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2026-09-01 07:54:16 +0200
commit0a4fa559e44ed3e77f723092feab977539b8aab0 (patch)
treeab5a94d816ae176f9f1319222b26cc1758a3c764 /samples/dict.lua
parent3581b58b9d5c09e3e37b7e20b41205ee3553aaa4 (diff)
downloadluasocket-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 'samples/dict.lua')
0 files changed, 0 insertions, 0 deletions