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

Function closeRequestStream

deps/undici/undici.js:8435–8444  ·  view source on GitHub ↗
(request, code = NGHTTP2_REFUSED_STREAM)

Source from the content-addressed store, hash-verified

8433 }
8434 __name(canRetryRequestAfterGoAway, "canRetryRequestAfterGoAway");
8435 function closeRequestStream(request, code = NGHTTP2_REFUSED_STREAM) {
8436 const stream = request[kRequestStream];
8437 clearRequestStream(request);
8438 if (stream != null && !stream.destroyed && !stream.closed) {
8439 try {
8440 stream.close(code);
8441 } catch {
8442 }
8443 }
8444 }
8445 __name(closeRequestStream, "closeRequestStream");
8446 function connectH2(client, socket) {
8447 client[kSocket] = socket;

Callers 1

onHttp2SessionGoAwayFunction · 0.70

Calls 2

clearRequestStreamFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected