Skip to content

Express response.get

TIP

返回 field 指定的 HTTP 响应标头。匹配不区分大小写

Express
res.get(field)
Express
res.set('Content-Type', 'text/plain');

res.get('Content-Type');
// => "text/plain"