feature: reimplemented the ngx.headers_sent API with LuaJIT FFI.