MCPcopy Create free account
hub / github.com/cypress-io/cypress / create

Function create

packages/https-proxy/test/helpers/https_server.ts:21–23  ·  view source on GitHub ↗
(onRequest: (req: IncomingMessage, res: ServerResponse) => void)

Source from the content-addressed store, hash-verified

19let servers: https.Server<typeof IncomingMessage, typeof ServerResponse>[] = []
20
21export const create = (onRequest: (req: IncomingMessage, res: ServerResponse) => void) => {
22 return https.createServer(options, onRequest != null ? onRequest : defaultOnRequest)
23}
24
25export const start = (port: number, onRequest?: (req: IncomingMessage, res: ServerResponse) => void) => {
26 return new Promise<https.Server>((resolve) => {

Callers 1

startFunction · 0.70

Calls 1

createServerMethod · 0.80

Tested by

no test coverage detected