createServer method

HttpsServer createServer([
  1. TLSServerOptions options,
  2. HttpRequestListener requestListener
])

Returns a new instance of HttpsServer.

The requestListener is a function which is automatically added to the 'request' event.

Implementation

external HttpsServer createServer(
    [TLSServerOptions options, HttpRequestListener requestListener]);