Skip to content

Support http server options when creating server instance #161

@passionate-bram

Description

@passionate-bram

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions