Skip to content

Add headers to ServerResponse types#179

Open
mcollina wants to merge 1 commit intomasterfrom
fix-serverresponse
Open

Add headers to ServerResponse types#179
mcollina wants to merge 1 commit intomasterfrom
fix-serverresponse

Conversation

@mcollina
Copy link
Copy Markdown
Member

@mcollina mcollina commented Jan 25, 2026

… fix

- Combine PR #178 (WHATWG Request/Response support) with fix for issue #2368 (ServerResponse headers property)
- Update SerializedResponse.raw type to include optional headers property on ServerResponse
- Add type tests for accessing headers from ServerResponse.raw
- Handle both ServerResponse and WHATWG Response types in test cases
@mcollina mcollina changed the title fix(types): merge WHATWG support with ServerResponse headers property fix Add headers to ServerResponse types Jan 25, 2026
@eroncastro
Copy link
Copy Markdown

lgtm!

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.

Property 'headers' does not exist on type 'ServerResponse<IncomingMessage>'

2 participants