Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.http.ServerResponse.writeHead overload ambiguity #2254

Open
vlsi opened this issue May 12, 2024 · 0 comments
Open

node.http.ServerResponse.writeHead overload ambiguity #2254

vlsi opened this issue May 12, 2024 · 0 comments
Assignees

Comments

@vlsi
Copy link

vlsi commented May 12, 2024

Is your feature request related to a problem? Please describe.

res.writeHead(200, "Ok", undefined.unsafeCast<OutgoingHttpHeaders>())

Currently, there's no way to omit headers parameter as Kotlin compiler is confused between OutgoingHttpHeaders and ReadOnlyArray<OutgoingHttpHeader> overloads.

missing writeHead(int, string) overload

Describe the solution you'd like

res.writeHead(200, "Ok")

Additional context

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

No branches or pull requests

2 participants