Why does node https module documentation example pass tls options to both the agent and the request options?

后端 未结 0 1081
不思量自难忘°
不思量自难忘° 2021-01-29 21:46

In the node https module docs, regarding https.request, an example is shown:

const options = {
  hostname: \'encrypted.google.com\',
  port: 443,
  path: \'/\',
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题