use res.getHeader / res.setHeader for compatibility with core Node HTTP