【发布时间】:2016-01-20 15:12:46
【问题描述】:
Browsersync 提到以下内容。
有谁知道请求对象的属性是什么?例如如何获取请求的 Host 属性?
middleware: function (req, res, next) {
//the following prints undefined - where can we learn about res, req and next()
console.log(res.getHeader('Host'));
}
【问题讨论】:
标签: gulp connect browser-sync