const http = require('http');
http.createServer(function (req, res) {
  var html = buildHtml(req);
  res.writeHead(200, {
    'Content-Type': 'text/html',
    'Content-Length': html.length,
    'Expires': new Date().toUTCString()
  });
  res.end('<div>Test</div>'');
}).listen(5000);