On this page

C

https.Server

History
class https.Server extends tls.Server

See http.Server for more information.

M

server.close

History
server.close(callback?): https.Server
Attributes
callback:Function
Returns:https.Server

See 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.

M

server.closeAllConnections

History
server.closeAllConnections(): void

See server.closeAllConnections() in the node:http module.

M

server.closeIdleConnections

History
server.closeIdleConnections(): void

See server.closeIdleConnections() in the node:http module.

P

server.headersTimeout

History
Type?:number
Default: 60000

See 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?:number
Default: 2000

See server.maxHeadersCount in the node:http module.

Type?:number
Default: 300000

See server.requestTimeout in the node:http module.

M

server.setTimeout

History
server.setTimeout(msecs?, callback?): https.Server
Attributes
msecs?:number
Default: 120000 (2 minutes)
callback:Function
Returns:https.Server

See server.setTimeout() in the node:http module.

Type?:number
Default: 0 (no timeout)

See server.timeout in the node:http module.

P

server.keepAliveTimeout

History
Type?:number
Default: 5000 (5 seconds)

See server.keepAliveTimeout in the node:http module.