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

Function createHttp2Server

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

Source from the content-addressed store, hash-verified

175export function createHttp2Server(onRequestHandler?: (request: http2.Http2ServerRequest, response: http2.Http2ServerResponse) => void,): http2.Http2SecureServer;
176export function createHttp2Server(options: http2.SecureServerOptions, onRequestHandler?: (request: http2.Http2ServerRequest, response: http2.Http2ServerResponse) => void,): http2.Http2SecureServer;
177export function createHttp2Server(...args: any[]): http2.Http2SecureServer {
178 const server = http2.createSecureServer(...args);
179 decorateServer(server);
180 return server;
181}
182
183export async function startHttpServer(server: http.Server, options: { host?: string, port?: number }) {
184 const { host = 'localhost', port = 0 } = options;

Callers 2

har.spec.tsFile · 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…