This is not a key question node.js, but a question on express.js.
In this case, your link: http://expressjs.com/en/4x/api.html#res.set
The signature of the set () function: res.set(field [, value])
res node native http.response api.
.set() express.js, , next(), .
, :
res.set('Content-Type', 'text/plain');
res.set({
'Content-Type': 'text/plain',
'Content-Length': '123',
'ETag': '12345'
});