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

Function isHTTPServer

test/parallel/test-diagnostics-channel-http.js:9–9  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

7const dc = require('diagnostics_channel');
8
9const isHTTPServer = (server) => server instanceof http.Server;
10const isIncomingMessage = (object) => object instanceof http.IncomingMessage;
11const isOutgoingMessage = (object) => object instanceof http.OutgoingMessage;
12const isNetSocket = (socket) => socket instanceof net.Socket;

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…