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

Function isRequest

lib/internal/streams/destroy.js:308–310  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

306}
307
308function isRequest(stream) {
309 return stream?.setHeader && typeof stream.abort === 'function';
310}
311
312function emitCloseLegacy(stream) {
313 stream.emit('close');

Callers 1

destroyerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected