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

Support http server options when creating server instance #161

Open
1 task done
passionate-bram opened this issue Feb 21, 2024 · 1 comment
Open
1 task done

Support http server options when creating server instance #161

passionate-bram opened this issue Feb 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@passionate-bram
Copy link

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 the highWaterMark 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

  • Would you be willing to help implement this feature?
@pi0 pi0 added the enhancement New feature or request label Feb 25, 2024
@pi0
Copy link
Member

pi0 commented Feb 25, 2024

PR welcome to add option 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants