const https = require('https');
const options = {
host: 'api.myjson.com',
port: 443,
path: '/bins/w4uk8'
};
// 发出请求。
const req = https.request(options);
req.end();
req.on('response', (info) => {
info.on('data', chunk => {
console.log(chunk.toString());
})
});