]> git.kaiwu.me - njs.git/commit
HTTP: added r.readRequestText() and friends.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 28 Mar 2026 01:43:56 +0000 (18:43 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 6 May 2026 00:50:59 +0000 (17:50 -0700)
commit7684d70257708a4dad6aca024e906d9e1ed705dc
tree604f311faeb39a26eda8f995c0584305ed59e486
parent8d571dd98677d69a27e3e0428bbaba3fe81ea792
HTTP: added r.readRequestText() and friends.

Added async methods
    - r.readRequestText() as string
    - r.readRequestArrayBuffer() as ArrayBuffer
    - r.readRequestJSON() as object.

that return Promises resolving with the request body wrapped
as a corresponding type.
nginx/ngx_http_js_module.c
nginx/ngx_js.h
nginx/ngx_js_fetch.c
nginx/ngx_qjs_fetch.c
nginx/t/js_access_body.t [new file with mode: 0644]
test/ts/test.ts
ts/ngx_http_js_module.d.ts