how to add headers to the server response node js

JavaScript
app.get('/', (req, res) => {
  req.header('User-Agent')
})

Source

Also in JavaScript: