function performServerHandshake
Jump to headingperformServerHandshake<Http1Request extends IncomingMessage = IncomingMessage,Http1Response extends ServerResponse = ServerResponse,Http2Request extends Http2ServerRequest = Http2ServerRequest,Http2Response extends Http2ServerResponse = Http2ServerResponse,>(socket: stream.Duplex,options?: ServerOptions<Http1Request, Http1Response, Http2Request, Http2Response>,): ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>Create an HTTP/2 server session from an existing socket.
Type Parameters Jump to heading
Jump to headingHttp1Request extends IncomingMessage = IncomingMessageJump to headingHttp1Response extends ServerResponse = ServerResponseJump to headingHttp2Request extends Http2ServerRequest = Http2ServerRequestJump to headingHttp2Response extends Http2ServerResponse = Http2ServerResponseParameters Jump to heading
Jump to headingsocket: stream.DuplexA Duplex Stream
optional
Jump to headingoptions: ServerOptions<Http1Request, Http1Response, Http2Request, Http2Response>Any [createServer](../.././http2/~/createServer) options can be provided.