Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ onStream
Function
onStream
test/parallel/test-http2-server-shutdown-before-respond.js:13–17 ·
view source on GitHub ↗
(stream, headers, flags)
Source
from the content-addressed store, hash-verified
11
server.on(
'stream'
, common.mustCall(onStream));
12
13
function
onStream(stream, headers, flags) {
14
stream.session.goaway(1);
15
stream.respond();
16
stream.end(
'data'
);
17
}
18
19
server.listen(0);
20
Callers
nothing calls this directly
Calls
3
goaway
Method · 0.80
respond
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected