https.request(options, callback)
Makes a request to a secure web server.
options can be an object or a string. If options is a string, it is automatically parsed with url.parse().
All options from http.request() are valid.
Example:
const https = require('https');
var options = {
hostname: 'encrypted.google.com',
port: 443,
path: '/',
method: 'GET'
};
var req = https.request(options, (res) => {
console.log('statusCode: ', res.statusCode);
console.log('headers: ', res.headers