/** * 响应404 * * @param {*} req * @param {*} res * @memberof StaticServer */ respondNotFound(req, res) { res.writeHead(404, { 'Content-Type': 'text/html' }); const html = _404TempLate(); res.end(html); }
/** * 响应404 * * @param {*} req * @param {*} res * @memberof StaticServer */ respondNotFound(req, res) { res.writeHead(404, { 'Content-Type': 'text/html' }); const html = _404TempLate(); res.end(html); }