MCPcopy Index your code
hub / github.com/nodejs/node / resetStream

Method resetStream

lib/internal/quic/quic.js:2426–2430  ·  view source on GitHub ↗

* Tells the peer that this end will not send any more data on this stream. * The optional error code will be sent to the peer as part of the * request. If the stream is already destroyed, this is a no-op. No * acknowledgement of this action will be provided. * @param {number|bigint} code

(code = 0n)

Source from the content-addressed store, hash-verified

2424 * @param {number|bigint} code
2425 */
2426 resetStream(code = 0n) {
2427 assertIsQuicStream(this);
2428 if (this.destroyed) return;
2429 this.#handle.resetStream(BigInt(code));
2430 }
2431
2432 /**
2433 * The priority of the stream. If the stream is destroyed or if

Calls

no outgoing calls

Tested by

no test coverage detected