njs
njs copied to clipboard
feature request: js_body_filter should have an option to operate on whole body
js_body_filter should have an optional argument in which case nginx would buffer the body, and pass that to js_body_filter without chunking.
Current workaround is to collect the data in a temporary place.
https://github.com/nginx/njs/issues/412#issuecomment-1279474775
@ustun Why not just use js_content and r.subrequest to another (internal) location containing the original content handler (such as proxy_pass) if you need the entire body buffered?