class https.Server extends tls.Server
See http.Server for more information.
server.close(callback?): https.Server
Attributes
callback:
FunctionReturns:
https.ServerSee server.close() in the node:http module.
server[Symbol.asyncDispose](): void
Calls server.close() and returns a promise that
fulfills when the server has closed.
server.closeAllConnections(): void
See server.closeAllConnections() in the node:http module.
server.closeIdleConnections(): void
See server.closeIdleConnections() in the node:http module.
Type?:
numberDefault:
60000See server.headersTimeout in the node:http module.
server.listen(): void
Starts the HTTPS server listening for encrypted connections.
This method is identical to server.listen() from net.Server.
Type?:
numberDefault:
2000See server.maxHeadersCount in the node:http module.
P
server.requestTimeout
History
Added in: v14.11.0
v14.11.0
The default request timeout changed from no timeout to 300s (5 minutes).
v18.0.0
Type?:
numberDefault:
300000See server.requestTimeout in the node:http module.
server.setTimeout(msecs?, callback?): https.Server
Attributes
See server.setTimeout() in the node:http module.
P
server.timeout
History
Added in: v0.11.2
v0.11.2
The default timeout changed from 120s to 0 (no timeout).
v13.0.0
Type?:
numberDefault: 0 (no timeout)
See server.timeout in the node:http module.
Type?:
numberDefault:
5000 (5 seconds)See server.keepAliveTimeout in the node:http module.