Node.js module
https
The 'node:https' module extends http to support secure TLS/SSL connections. It provides https.createServer and https.request methods for serving and consuming encrypted HTTPS traffic.
Fully supported in Bun
APIs are implemented, but the Agent is not always used yet, which might affect connection pooling and other Agent features.
Functions 3
- https.createServer()
``js // curl -k https://localhost:8000/ import https from 'node:https'; import fs from 'node:fs' - https.get()
Like
http.get()but for HTTPS. - https.request()
Makes a request to a secure web server.
Classes 2
- class https.Agent
An
Agentobject for HTTPS similar tohttp.Agent. - class https.Server
See
http.Serverfor more information.