/
githubmirror
/
express
Обзор
Документация
Войти
/
githubmirror
/
express
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.17.2
benchmarks/middleware.js
19 строк
312 B
Douglas Christopher Wilson
Use safe-buffer for improved Buffer API
28 сен 2017, 15:26
28 сен 2017, 15:26
12c3712
Код
Авторство
О чём код?
var express = require('..'); var app = express(); // number of middleware var n = parseInt(process.env.MW || '1', 10); console.log(' %s middleware', n); while (n--) { app.use(function(req, res, next){ next(); }); } app.use(function(req, res, next){ res.send('Hello World') }); app.listen(3333);