Skip to content

quic: body is lacking support for streaming #60234

@martenrichter

Description

@martenrichter

What is the problem this feature will solve?

Currently, when creating a unidirectional or bidirectional stream, only fixed-size objects such as Uint8Arrays, Blobs, etc., are allowed.
Passing a stream is necessary if you want, for example, to implement WebTransport (as I do).
There is also a comment in the source that this is planned.

What is the feature you are proposing to solve the problem?

It should be possible to pass a ReadableStream of Uint8Arrays. (Even though it is a bit awkward to have to use ReadableStreams for one for incoming and one for outgoing data, and not a ReadableStream and WriteableStream).

If I have actually already implemented the fix and only need the issue for the upcoming PR. (Also some small but blocking bugs, discovered while writing a test, were fixed).
@jasnell I hope you do not mind.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions