]> git.kaiwu.me - njs.git/commit
http subrequest() method.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 21 Mar 2018 14:33:13 +0000 (17:33 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 21 Mar 2018 14:33:13 +0000 (17:33 +0300)
commit8263eccfacbf86af3e69147a45f5ee1b8e671905
treeb3f4d358136b28eeed108ce5af55a71ab09d23f0
parent1e6892bc7d180f499d8eff8bfb8e5e8a410ab14e
http subrequest() method.

Creates an nginx's subrequest with the specified arguments and
registers a finalization callback.

req.subrequest(<uri>[, <options>[, <callback>]]):
    uri - string.
    options - string | object.
        string value - uri arguments.
        object value can contain:
            args, body, method all are string values.
    callback - function with the following argument:
        reply - the result object with the following properties:
            uri, method, status, contentType, contentLength,
            headers, args, body, parent.
nginx/ngx_http_js_module.c
njs/njs_error.c
njs/njs_error.h
njs/njs_vm.c
njs/njscript.c
njs/njscript.h
njs/test/njs_unit_test.c