144 * Dispatch a req, res pair into the application. Starts pipeline processing.
145 *
146▶ * If no callback is provided, then default error handlers will respond
147 * in the event of an error bubbling through the stack.
148 *
· · ·
147▶ * in the event of an error bubbling through the stack.
148 *
149 * @private
· · ·
154 var done = callback || finalhandler(req, res, {
155 env: this.get('env'),
156▶ onerror: logerror.bind(this)
157 });
158
· · ·
211
212 if (fns.length === 0) {
213▶ throw new TypeError('app.use() requires a middleware function')
214 }
215
· · ·
294app.engine = function engine(ext, fn) {
295 if (typeof fn !== 'function') {
296▶ throw new Error('callback function required');
297 }
298
+ 7 more matches in this file