follow redirects:自动遵循HTTP(S)重定向的Node.js模块 源码

win_73341 10 0 ZIP 2021-02-17 15:02:10

跟随重定向 自动跟随重定向的Node的http和https模块的直接替换。 follow-redirects提供的和方法的行为与在本机和模块上发现的方法相同,不同之处在于它们将无缝地跟随重定向。 const { http , https } = require ( 'follow-redirects' ) ; http . get ( 'http://bit.ly/900913' , response => { response . on ( 'data' , chunk => { console . log ( chunk ) ; } ) ; } ) . on ( 'er

用户评论
请输入评论内容
评分:
暂无评论