njs icon indicating copy to clipboard operation
njs copied to clipboard

feature request: js_body_filter should have an option to operate on whole body

Open ustun opened this issue 3 years ago • 1 comments

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 avatar Oct 14 '22 21:10 ustun

@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?

jo-carter avatar Apr 26 '24 00:04 jo-carter