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