]> git.kaiwu.me - njs.git/commit
Modules: introduced Buffer alternatives for object properties.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 25 Nov 2020 10:47:47 +0000 (10:47 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 25 Nov 2020 10:47:47 +0000 (10:47 +0000)
commit01fde66111c1d47130551038ce2b3fa58d20d3a2
tree24ce506c2f812636f9314950b18b4b322e18e178
parent1c73c2f90aa6e7ebf335273861771129ab819ee2
Modules: introduced Buffer alternatives for object properties.

Buffer variant returns the property bytes as is, whereas the string
version may convert bytes invalid in UTF-8 encoding into replacement
character.

HTTP
new request object properties:
r.reqBody (r.requestBody),
r.resBody (r.responseBody),
r.vars (r.variables).

Stream
new stream object properties:
s.vars (s.variables).

new events:
The events' callbacks are identical to the string counterparts, except the data
argument:
upstream (upload),
downstream (download).
nginx/ngx_http_js_module.c
nginx/ngx_js.h
nginx/ngx_stream_js_module.c
src/njs.h
src/njs_extern.c
src/njs_value.c
src/njs_value.h