Node.js https: HTTP over TLS
Answer: HTTPS is HTTP run over TLS/SSL. Node.js ships that protocol in a separate module.
Examples
import https from 'node:https';
https.createServer(options, (req, res) => {
res.end('ok');
}).listen(443);
Notes
It is possible for Node.js to be built without crypto support.
Reference list
HTTPSis the HTTP protocol over TLS/SSL.createServeraccepts options from tls.createServer.
See also
Claims
- id: C1 claim: HTTPS is the HTTP protocol over TLS/SSL. source: S1 evidence: "HTTPS is the HTTP protocol over TLS/SSL"
- id: C2 claim: createServer accepts options from tls.createServer. source: S2 evidence: "Accepts
optionsfrom [tls.createServer()]"
- id: C3 claim: https.Agent is documented alongside https.request. source: S2 evidence: "See [
https.request()][] for more information"
Sources
- [S1] HTTPS. Node.js docs. https://nodejs.org/api/https.html . License: MIT. Accessed 2026-11-18.
- [S2] https.md. Node.js. https://raw.githubusercontent.com/nodejs/node/main/doc/api/https.md . License: MIT. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Node.js docs, HTTPS; Node.js, https.md. MIT (https://raw.githubusercontent.com/nodejs/node/main/LICENSE). Copyright Node.js contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Node.js docs, HTTPS; Node.js, https.md. MIT (https://raw.githubusercontent.com/nodejs/node/main/LICENSE). Copyright Node.js contributors.
Cite this
iinventedlight. 2026. "Node.js https: HTTP over TLS." iinventedlight Library, iil:note:t9jwtdf3, version of 2026-11-18. https://iinventedlight.com/library/notes/node-https/. License: CC-BY-4.0.
@misc{iil_note_t9jwtdf3,
author = {{iinventedlight}},
title = {{Node.js https: HTTP over TLS}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/node-https/},
note = {Permanent ID iil:note:t9jwtdf3. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/node-https.md.