diff options
author | Zhidao HONG <z.hong@f5.com> | 2024-01-31 14:51:21 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2024-02-20 06:09:23 +0800 |
commit | 33c6c4d4c0e060a974791a472b739214366dead6 (patch) | |
tree | fd754daca475f3c13af4a3420ee657d7f63afaba /docs | |
parent | 63ad4deb8a9a7955c5eec3098a2acc3e149831c7 (diff) | |
download | unit-33c6c4d4c0e060a974791a472b739214366dead6.tar.gz unit-33c6c4d4c0e060a974791a472b739214366dead6.tar.bz2 |
NJS: variable access support
This commit introduces the 'vars' JavaScript object to NJS,
enabling direct access to native variables such as $uri and $arg_foo.
The syntax is `${vars.var_name}` or `${'vars[var_name]'}`.
For example:
{
"action": {
"share": "`/www/html${vars.uri}`"
}
}
Diffstat (limited to 'docs')
-rw-r--r-- | docs/changes.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/changes.xml b/docs/changes.xml index a3549697..833ec20e 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -67,6 +67,12 @@ conditional access logging. <change type="feature"> <para> +NJS variables access. +</para> +</change> + +<change type="feature"> +<para> $request_id variable contains a string that is formed using random data and can be used as a unique request identifier. </para> |