Class: https.Agentnew Agent([options]). Class: https.Server. Source Code:lib/https.js. HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as aseparate module.
"https://www.domainname.com/sometext/"+ var1 +"/someothertext"
It is possible for Node.js to be built without including support for thecrypto module.
In such cases, attempting to import from https orcalling require('https') will result in an error being thrown.
When using CommonJS, the error thrown can be caught using try/catch:. When using the lexical ESM import keyword, the error can only becaught if a handler for process.on('uncaughtException') is registeredbefore any attempt to load the module is made (using, for instance,a preload module).
When using ESM, if there is a chance that the code may be run on a buildof Node.js where crypto support is not enabled, consider using theimport() function instead of the lexical import keyword:.
An Agent object for HTTPS similar to http.Agent.
Seehttps.request() for more information. options