Skip to content

strange behavior of res.writeHeader() #121

Answered by ghost
kng83 asked this question in Q&A
Discussion options

You must be logged in to vote

https://unetworking.github.io/uWebSockets.js/generated/interfaces/httpresponse.html#writeheader

Writes key and value to HTTP response.

This is what it does. It writes (in order) what you hand it. That's why lazily written "middlewares" won't fit here - you have to know what you want to write before you write it, well at least you cannot overwrite

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #121 on December 09, 2020 12:14.