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

Open
#585 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, javascript, nginx
Domain
backend

Research direction

Start by reading the existing js_body_filter behavior and the referenced njs issue discussion. Determine where body chunking and buffering are handled, then verify that the optional argument delivers the complete body without chunking while preserving current behavior when omitted.

Written by the indexing model from the issue text.

Description

feature njs

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

Dominant language
C
Stars
1.6k
Forks
245
Avg merge
2d 5h
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nginx/njs

All issues in nginx/njs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.