MCPcopy
hub / github.com/microsoft/playwright / createHttpServer

Function createHttpServer

packages/utils/network.ts:161–165  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

159export function createHttpServer(requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): http.Server;
160export function createHttpServer(options: http.ServerOptions, requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): http.Server;
161export function createHttpServer(...args: any[]): http.Server {
162 const server = http.createServer(...args);
163 decorateServer(server);
164 return server;
165}
166
167export function createHttpsServer(requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): https.Server;
168export function createHttpsServer(options: https.ServerOptions, requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): https.Server;

Callers 9

listenMethod · 0.90
constructorMethod · 0.90
startMcpHttpServerFunction · 0.90
createExtensionBrowserFunction · 0.90
startMethod · 0.90
web-server.spec.tsFile · 0.85
startMethod · 0.85
constructorMethod · 0.85

Calls 1

decorateServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…