]> git.kaiwu.me - njs.git/commit
njs_vm_call() interface to call a function outside.
authorIgor Sysoev <igor@sysoev.ru>
Wed, 2 Mar 2016 12:10:28 +0000 (15:10 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 2 Mar 2016 12:10:28 +0000 (15:10 +0300)
commit9f21bc617d2c345b031b9325a19bb5142f46fe2d
treec738aab27823a6889b978ec784d38774e3419e5f
parentdbd41819f77aee11ec96f701e2a83721d0e17c03
njs_vm_call() interface to call a function outside.
nginx content and variable handlers interface is

    function name(request, response) { ... }

Variable handler use a value returned by function as value of the variable.
nginx/ngx_http_js_module.c
njs/njs_extern.c
njs/njs_generator.c
njs/njs_parser.c
njs/njs_parser.h
njs/njs_vm.h
njs/njscript.c
njs/njscript.h
njs/test/njs_unit_test.c