• Marek Vavruša's avatar
    daemon: allow per-request variables in Lua · 14de9110
    Marek Vavruša authored
    The handlers in Lua can now store per-request variables that are automatically
    GC'd when the request is finished. This is useful for stateful modules,
    such as DNS64 that uses internal option flags for state tracking.
    
    The layers can now get a variable table like so:
    
    ```
    local vars = kres.request_t(r):vars()
    vars.hello = true
    ```
    
    The variables are persisted between different layers for each request.
    14de9110
Name
Last commit
Last update
bench Loading commit data...
ci Loading commit data...
client Loading commit data...
contrib Loading commit data...
daemon Loading commit data...
distro Loading commit data...
doc Loading commit data...
etc Loading commit data...
lib Loading commit data...
modules Loading commit data...
scripts Loading commit data...
systemd Loading commit data...
tests Loading commit data...
.clang-tidy Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.luacheckrc Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
CodingStyle Loading commit data...
Makefile Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
config.mk Loading commit data...
coverage.mk Loading commit data...
platform.mk Loading commit data...