You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem directly is that there is no way to modify the highWaterMark setting for server responses.
This means that responses are chunked per 16k bytes.
The only point you can change this is at the moment of server creation, by either modifying the highWaterMark option (which affects the incomming messages buffering as well) or by specifying an alternate class for the ServerResponse which could wrap the default and modify the highWaterMark field as it is passed in/on.
The point of all of this is to build a server that can respond in small chunk sizes when, for example, exposing a response as a continuous stream of (small) data.
Additional information
Would you be willing to help implement this feature?
The text was updated successfully, but these errors were encountered:
Describe the feature
My problem directly is that there is no way to modify the
highWaterMark
setting for server responses.This means that responses are chunked per 16k bytes.
The only point you can change this is at the moment of server creation, by either modifying the
highWaterMark
option (which affects the incomming messages buffering as well) or by specifying an alternate class for the ServerResponse which could wrap the default and modify thehighWaterMark
field as it is passed in/on.Docs: https://nodejs.org/api/http.html#httpcreateserveroptions-requestlistener
The point of all of this is to build a server that can respond in small chunk sizes when, for example, exposing a response as a continuous stream of (small) data.
Additional information
The text was updated successfully, but these errors were encountered: