Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions doc/api/quic.md
Original file line number Diff line number Diff line change
Expand Up @@ -1285,21 +1285,23 @@ added: v23.8.0
* `headers` {Object} Initial request or response headers to send. Only
used when the session supports headers (e.g. HTTP/3). If `body` is not
specified and `headers` is provided, the stream is treated as
headers-only (terminal).
headers-only (terminal).
* `priority` {string} The priority level of the stream. One of `'high'`,
`'default'`, or `'low'`. **Default:** `'default'`.
* `incremental` {boolean} When `true`, data from this stream may be
interleaved with data from other streams of the same priority level.
When `false`, the stream should be completed before same-priority peers.
**Default:** `false`.
* `highWaterMark` {number} The maximum number of bytes that the writer
* `budget` {number} The maximum number of bytes that the writer
will buffer before `writeSync()` returns `false`. When the buffered
data exceeds this limit, the caller should wait for drain before
writing more. **Default:** `65536` (64 KB).
* `onheaders` {Function} Callback for received initial response headers.
Called with `(headers)`.
* `ontrailers` {Function} Callback for received trailing headers.
Called with `(trailers)`.


* `oninfo` {Function} Callback for received informational (1xx) headers.
Called with `(headers)`.
* `onwanttrailers` {Function} Callback when trailers should be sent.
Expand Down Expand Up @@ -1333,7 +1335,7 @@ added: v23.8.0
interleaved with data from other streams of the same priority level.
When `false`, the stream should be completed before same-priority peers.
**Default:** `false`.
* `highWaterMark` {number} The maximum number of bytes that the writer
* `budget` {number} The maximum number of bytes that the writer
will buffer before `writeSync()` returns `false`. When the buffered
data exceeds this limit, the caller should wait for drain before
writing more. **Default:** `65536` (64 KB).
Expand Down Expand Up @@ -1940,7 +1942,7 @@ added: v23.8.0
The directionality of the stream, or `null` if the stream has been destroyed
or is still pending. Read only.

### `stream.highWaterMark`
### `stream.budget`

<!-- YAML
added: v26.2.0
Expand Down Expand Up @@ -2252,7 +2254,8 @@ The Writer has the following methods:
the QUIC transport-layer `INTERNAL_ERROR` (`0x1`) for raw QUIC).
See [`stream.destroy()`][] for a full-stream abort that also resets
the readable side via `STOP_SENDING`.
* `desiredSize` — Available capacity in bytes, or `null` if closed/errored.
* `canWrite` — `true` if writes will be accepted, `false` if at capacity,
or `null` if closed/errored.

The bytes from each `writeSync()` / `writevSync()` / `write()` / `writev()`
input chunk are copied into an internal buffer, so the caller's source
Expand Down
Loading
Loading