MCPcopy Create free account

hub / github.com/expressjs/body-parser / functions

Functions32 in github.com/expressjs/body-parser

↓ 5 callersFunctionnormalizeOptions
* Normalizes the common options for all parsers. * * @param {Object} options options to normalize * @param {string | string[] | Function} defaultTy
lib/utils.js:39
↓ 4 callersFunctionread
* Read a request into a buffer and parse. * * @param {Object} req * @param {Object} res * @param {Function} next * @param {Function} parse * @pa
lib/read.js:45
↓ 2 callersFunctionnormalizeJsonSyntaxError
* Normalize a SyntaxError for JSON.parse. * * @param {SyntaxError} error * @param {Object} obj * @returns {SyntaxError} * @private
lib/types/json.js:171
↓ 1 callersFunctioncreateDecompressionStream
* Create a decompression stream for the given encoding. * @param {string} encoding * @param {Function} debug * @returns {Object} * @private
lib/read.js:214
↓ 1 callersFunctioncreateJsonParser
* Create a JSON parse function * * @param {object} [options] * @return {function} * @private
lib/types/json.js:71
↓ 1 callersFunctioncreateManyParams
(count)
test/urlencoded.js:955
↓ 1 callersFunctioncreateQueryParser
* Get the extended query parser. * * @param {Object} options * @returns {Function} * @private
lib/types/urlencoded.js:62
↓ 1 callersFunctioncreateServer
(opts)
test/json.js:967
↓ 1 callersFunctioncreateServer
(opts)
test/text.js:573
↓ 1 callersFunctioncreateServer
(opts)
test/raw.js:503
↓ 1 callersFunctioncreateServer
(opts)
test/urlencoded.js:972
↓ 1 callersFunctioncreateStrictSyntaxError
* Create strict violation syntax error matching native error. * * @param {string} str * @param {string} char * @returns {Error} * @private
lib/types/json.js:130
↓ 1 callersFunctiondump
* Dump the contents of a request. * * @param {Object} req * @param {Function} callback * @private
lib/read.js:244
↓ 1 callersFunctionexpectKeyCount
(count)
test/urlencoded.js:990
↓ 1 callersFunctionfirstNonWhitespaceChar
* Get the first non-whitespace character in a string. * * @param {string} str * @returns {string|undefined} * @private
lib/types/json.js:157
↓ 1 callersFunctiongetCharset
* Get the charset of a request. * * @param {Object} req * @returns {string | undefined} * @private
lib/read.js:260
↓ 1 callersFunctionjson
* Create a middleware to parse JSON bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/json.js:48
↓ 1 callersFunctionparameterCount
* Count the number of parameters, stopping once limit reached * * @param {string} body * @param {number} limit * @returns {number|undefined} Retur
lib/types/urlencoded.js:129
↓ 1 callersFunctionparseError
(str)
test/json.js:987
↓ 1 callersFunctionshouldContainInBody
(str)
test/json.js:995
↓ 1 callersFunctiontypeChecker
* Get the simple type checker. * * @param {string | string[]} type * @returns {Function} * @private
lib/utils.js:25
↓ 1 callersFunctionverify
()
test/utils.js:63
Functionaccept
(req)
test/json.js:586
Functionaccept
(req)
test/text.js:273
Functionaccept
(req)
test/raw.js:249
Functionaccept
(req)
test/urlencoded.js:645
FunctionbodyParser
* Create a middleware to parse json and urlencoded bodies. * * @deprecated * @public
index.js:53
Functionpassthrough
* Passthrough function that returns input unchanged. * Used by parsers that don't need to transform the data. * * @param {*} value * @returns {*}
lib/utils.js:83
Functionraw
* Create a middleware to parse raw bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/raw.js:30
Functiontext
* Create a middleware to parse text bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/text.js:30
FunctiontypeFunction
(req)
test/utils.js:202
Functionurlencoded
* Create a middleware to parse urlencoded bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/urlencoded.js:34