Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
308
function
isRequest(stream) {
309
return
stream?.setHeader && typeof stream.abort ===
'function'
;
310
}
311
312
function
emitCloseLegacy(stream) {
313
stream.emit(
'close'
);
Callers
1
destroyer
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected