Skip to content

Subrequest headers#1038

Draft
xeioex wants to merge 1 commit into
nginx:masterfrom
xeioex:subrequest_headers
Draft

Subrequest headers#1038
xeioex wants to merge 1 commit into
nginx:masterfrom
xeioex:subrequest_headers

Conversation

@xeioex

@xeioex xeioex commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@xeioex
xeioex force-pushed the subrequest_headers branch 4 times, most recently from c5c15c3 to 1fb5925 Compare March 27, 2026 03:22
@xeioex
xeioex force-pushed the subrequest_headers branch from 1fb5925 to dec1d38 Compare March 31, 2026 01:44
The option allows JavaScript code to pass custom request headers
to subrequests:

    r.subrequest('/api', {headers: {'X-Token': secret}})

The option accepts a JavaScript object whose keys and values are
added as request headers to the subrequest.  Parent request headers
are inherited by default; user-supplied headers override matching
parent headers using case-insensitive comparison.

Transport-level headers (Connection, Content-Length,
Transfer-Encoding, Expect) supplied by the caller are silently
ignored.  When a body is provided, Content-Length is derived from
the actual body size regardless of what the caller passes.
@xeioex
xeioex force-pushed the subrequest_headers branch from dec1d38 to 0b8be5f Compare April 6, 2026 23:42
@sindhushiv sindhushiv moved this from New to In Progress in NGINX OSS Unified Workspace May 7, 2026
@sindhushiv sindhushiv moved this from In Progress to New in NGINX OSS Unified Workspace May 7, 2026
@xeioex
xeioex marked this pull request as draft May 16, 2026 22:59
@sindhushiv sindhushiv added the njs label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants