Skip to content

Commit f60c0d2

Browse files
committed
quic: Add ReadableStream to setOutbound (add to docs)
1 parent ed48817 commit f60c0d2

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

doc/api/quic.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,16 @@ added: v23.8.0
832832

833833
The session that created this stream. Read only.
834834

835+
### `stream.setOutbound(outbound)`
836+
837+
<!-- YAML
838+
added: REPLACEME
839+
-->
840+
841+
* `outbound` {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob|ReadableStream}
842+
843+
Set the outbound datasource.
844+
835845
### `stream.stats`
836846

837847
<!-- YAML

lib/internal/quic/quic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -839,10 +839,10 @@ class QuicStream {
839839
/**
840840
* Sets the outbound data source for the stream. This can only be called
841841
* once and must be called before any data will be sent. The body can be
842-
* an ArrayBuffer, a TypedArray or DataView, or a Blob. If the stream
843-
* is destroyed or already has an outbound data source, an error will
844-
* be thrown.
845-
* @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob} outbound
842+
* an ArrayBuffer, a TypedArray or DataView, or a Blob, a ReadableStream.
843+
* If the stream is destroyed or already has an outbound data source,
844+
* an error will be thrown.
845+
* @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob|ReadableStream} outbound
846846
*/
847847
setOutbound(outbound) {
848848
QuicStream.#assertIsQuicStream(this);

0 commit comments

Comments
 (0)