Skip to content
Myr

mention res.format() callback

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 1311f2a · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:lib/response.js+7 added
339 unmodified lines
340 * res.send({ message: 'hey' });341 * }342 * });343 *344 * By default Express passes an `Error`345 * with a `.status` of 406 to `next(err)`346 * if a match is not made, however you may347 * provide an optional callback `fn` to348 * be invoked instead.349 *350 * @param {Object} obj351 * @param {Function} fn352 * @return {ServerResponse} for chaining353 * @api public354 */355
292 unmodified lines