index.js
function setHeaders (res, headers) {
  if (!headers) {
    return
  }

  var keys = Object.keys(headers)
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i]
    res.setHeader(key, headers[key])
  }
}
function setHeaders (res, headers) {
  if (!headers) {
    return
  }

  var keys = Object.keys(headers)
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i]
    res.setHeader(key, headers[key])
  }
}
function setHeaders ( res , headers ) { if ( ! headers ) { return } var keys = Object . keys ( headers ) for ( var i = 0 ; i < keys . length ; i ++ ) { var key = keys [ i ] res . setHeader ( key , headers [ key ] ) } }
Set response headers from an object.

@param {OutgoingMessage} res
@param {object} headers
@private
Set response headers from an object .