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

Method setNextStreamID

lib/internal/http2/core.js:1430–1438  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1428 // The value must be a number in the range 0 <= n <= kMaxStreams. The
1429 // value also needs to be larger than the current next stream ID.
1430 setNextStreamID(id) {
1431 if (this.destroyed)
1432 throw new ERR_HTTP2_INVALID_SESSION();
1433
1434 validateNumber(id, 'id');
1435 if (id <= 0 || id > kMaxStreams)
1436 throw new ERR_OUT_OF_RANGE('id', `> 0 and <= ${kMaxStreams}`, id);
1437 this[kHandle].setNextStreamID(id);
1438 }
1439
1440 // Sets the local window size (local endpoints's window size)
1441 // Returns 0 if success or throw an exception if NGHTTP2_ERR_NOMEM

Calls

no outgoing calls

Tested by

no test coverage detected