Skip to content
Myr

docs: update return types for req.accept*()

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

closes #2663

authored by Alexander Marenin · committed by Douglas Christopher Wilson · parent 4b70375 · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:lib/request.js+4 added-4 removed
96 unmodified lines
97 * req.accepts('html, json');98 * // => "json"99 *100 * @param {String|Array} type(s)101 * @return {String}101 * @return {String|Array|Boolean}102 * @api public103 */104105req.accepts = function(){
4 unmodified lines
110/**111 * Check if the given `encoding`s are accepted.112 *113 * @param {String} ...encoding114 * @return {Boolean}114 * @return {String|Array}115 * @api public116 */117118req.acceptsEncodings = function(){
8 unmodified lines
127 * Check if the given `charset`s are acceptable,128 * otherwise you should respond with 406 "Not Acceptable".129 *130 * @param {String} ...charset131 * @return {Boolean}131 * @return {String|Array}132 * @api public133 */134135req.acceptsCharsets = function(){
8 unmodified lines
144 * Check if the given `lang`s are acceptable,145 * otherwise you should respond with 406 "Not Acceptable".146 *147 * @param {String} ...lang148 * @return {Boolean}148 * @return {String|Array}149 * @api public150 */151152req.acceptsLanguages = function(){
315 unmodified lines