Skip to content

Subrequest headers#1038

Open
xeioex wants to merge 1 commit intonginx:masterfrom
xeioex:subrequest_headers
Open

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

Conversation

@xeioex
Copy link
Copy Markdown
Contributor

@xeioex xeioex commented Mar 21, 2026

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
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 1fb5925 to dec1d38 Compare March 31, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant