Skip to content
masterclass Buddy

Node.js · Function

createServer

Creates an HTTPS server with TLS settings and an optional request handler. It returns an https.Server that can listen for secure HTTP connections.

Last updated

Since
v0.3.4

Syntax

https.createServer(options?, requestListener?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • https.Server
  • tls.createServer()
  • tls.createSecureContext()
  • http.createServer()
  • https.get()
  • https.request()

Source: https.createServer | Node.js 26.13.0 Documentation. Checked 2026-11-03.