Skip to content
Myr

docs

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 3c6ad53 · Browse files · 1 file+0 added−11 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+0 added−11 removed

  • other:+0 added−11 removed

1 file+0 added−11 removed

modified:lib/request.js-11 removed
258 unmodified lines
259 * 260 * req.is('html');261 * // => false262 * 263 * Now within our route callbacks, we can use to to assert content types264 * such as "image/jpeg", "image/png" as shown here:265 * 266 * app.post('/image/upload', function(req, res, next){267 * if (req.is('image/*')) {268 * // do something269 * } else {270 * next();271 * }272 * });273 * 263 * @param {String} type264 * @return {Boolean}265 * @api public266 */
148 unmodified lines