-
I have code like below: I use windows 7 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Well you have to make up your mind before you commit ;) |
Beta Was this translation helpful? Give feedback.
-
You right.But someone has told me once :It makes sense to follow the docs. Write is not push. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Is it necessary to force the |
Beta Was this translation helpful? Give feedback.
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