node:http provides the Node HTTP/1.1 server and client; node:https provides the client only. For a Fetch-style
handler or HTTP/2, use Elide.serve.
Exports
Agent, ClientRequest, IncomingMessage, OutgoingMessage, Server, ServerResponse, createServer,
request, get, globalAgent, METHODS, STATUS_CODES, maxHeaderSize (16384), validateHeaderName,
validateHeaderValue, and setMaxIdleHTTPParsers. node:https has its own Agent and globalAgent.
Differences from Node
https.createServerthrowsERR_HTTPS_SERVER_UNSUPPORTED; terminate TLS in front ofhttp.createServer.http.globalAgentdefaults tokeepAlive: true,maxSockets: Infinity, andmaxFreeSockets: 256.- HTTPS certificate validation follows fetch.
node:http2is unavailable.--allow-netand--deny-netapply under the sandbox.