const https = require('https');
https.get('https://www.google.com/', (res) => {
console.log('statusCode: ', res.statusCode);
console.log('headers: ', res.headers);
res.on('data', (d) => {
process.stdout.write(d);
});
}).on('error', (e) => {
console.error(e);
});
要想解析国外网址怎么解,已有搭建好shadowsocks的digital ocean服务器
雷雷