标签:
app.get(‘/headers‘, function(req, res){ res.set(‘Content-Type‘, ‘text/plain‘); var s = ‘‘; for(var name in req.headers) s += name + ‘: ‘ + req.headers[name] + ‘\n‘; res.send(s); });
【Express】请求和响应对象
原文地址:http://www.cnblogs.com/jzm17173/p/4272942.html