• 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
..
cache Loading commit data...
cookies Loading commit data...
dnssec Loading commit data...
generic Loading commit data...
layer Loading commit data...
README.rst Loading commit data...
defines.h Loading commit data...
dnssec.c Loading commit data...
dnssec.h Loading commit data...
layer.h Loading commit data...
lib.mk Loading commit data...
module.c Loading commit data...
module.h Loading commit data...
nsrep.c Loading commit data...
nsrep.h Loading commit data...
resolve.c Loading commit data...
resolve.h Loading commit data...
rplan.c Loading commit data...
rplan.h Loading commit data...
utils.c Loading commit data...
utils.h Loading commit data...
zonecut.c Loading commit data...
zonecut.h Loading commit data...