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