// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
app.use('/preview.html', function(req, res, next) { if (req.headers[config.INTERNAL_ID_HEADER] !== config.INTERNAL_ID) { return res.status(404).end('Not Found'); } next(); var index = req.path.indexOf('=') + 1; if (index) { var charset = req.path.substring(index); res.set('content-type', 'text/html;charset=' + charset); } });
app.use('/js/index.js', function(req, res) { if (req.headers['if-none-match'] === jsETag) { return res.sendStatus(304); } var headers = { 'Content-Type': 'application/javascript; charset=utf-8', 'Cache-Control': 'public, max-age=300', ETag: jsETag }; if (util.canGzip(req)) { headers['Content-Encoding'] = 'gzip'; res.writeHead(200, headers); res.end(gzipIndexJs); } else { res.writeHead(200, headers); res.end(indexJs); } });
'Unable to load page. Please check the application logs for more details.' .end();
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });