function headersSent (res) {
  // istanbul ignore next: node.js 0.8 support
  return typeof res.headersSent !== 'boolean'
    ? Boolean(res._header)
    : res.headersSent
}
Determine if the response headers have been sent.

@param {object} res
@returns {boolean}
@private