docs: explain request header validation by vibhor-aggr · Pull Request #5413 · nodejs/undici (original) (raw)
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