summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_js.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-02-20NJS: variable access supportZhidao HONG1-0/+49
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}`" } }
2023-01-17NJS: added the keys API for the request objects.Zhidao HONG1-33/+100
This commit is to loop through the request objects headers, arguments, and cookies.
2022-11-22NJS: added http request prototype.Zhidao HONG1-0/+273