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

Function isServerRequest

lib/internal/streams/utils.js:277–283  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

275}
276
277function isServerRequest(stream) {
278 return (
279 typeof stream._consuming === 'boolean' &&
280 typeof stream._dumped === 'boolean' &&
281 stream.req?.upgradeOrConnect === undefined
282 );
283}
284
285function willEmitClose(stream) {
286 if (!isNodeStream(stream)) return null;

Callers 1

destroyerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…