Files
expressjs.com/_includes/api/en/3x/res-set.md
Douglas Christopher Wilson 3323c68d4a lint: apply standard 14 formatting
2020-03-26 17:26:41 -04:00

308 B

res.set(field, [value])

Set header field to value, or pass an object to set multiple fields at once.

res.set('Content-Type', 'text/plain')

res.set({
  'Content-Type': 'text/plain',
  'Content-Length': '123',
  ETag: '12345'
})

Aliased as res.header(field, [value]).