Skip to content

docs: explain request header validation#5413

Merged
metcoder95 merged 1 commit into
nodejs:mainfrom
vibhor-aggr:docs/request-header-validation
Jun 12, 2026
Merged

docs: explain request header validation#5413
metcoder95 merged 1 commit into
nodejs:mainfrom
vibhor-aggr:docs/request-header-validation

Conversation

@vibhor-aggr

Copy link
Copy Markdown
Contributor

Closes #1470.

This documents how Undici handles protocol-managed request headers in options.headers, including the invalid connection header path, unsupported expect, rejected hop-by-hop headers, and special host/content-length handling. It also removes connection from the generic header example so it is not presented as an ordinary forwarded header.

Verification:

  • PATH=/mnt/TBT_DATA/nipun/work/tasks/earn-100-legal/workspace/toolchains/node/node-v24.16.0-linux-x64/bin:$PATH npm run lint -- docs/docs/api/Dispatcher.md (exits 0; ESLint reports Markdown file ignored)
  • git diff --check

@metcoder95 metcoder95 merged commit 669f0f8 into nodejs:main Jun 12, 2026
@github-actions github-actions Bot mentioned this pull request Jun 15, 2026
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.

docs: forbidden headers not documented

2 participants