mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Add `headersDistinct` and `trailersDistinct` getters to IncomingMessage
to match Node.js behavior. These properties return headers/trailers
grouped by lowercased name with all values as arrays.
Example output:
{
accept: [ 'application/json', 'text/plain' ],
host: [ 'localhost:8000' ]
}
The implementation uses lazy evaluation with caching for performance.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>