How to identify if domain is http or https with nodejs?

后端 未结 0 691
忘掉有多难
忘掉有多难 2021-01-05 11:54

is there a way to check a domain if the domain has http or https with nodejs.

const http_code = domain => {
    needle.get(domain, (err, res) => {
              


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