Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expressjs/body-parser
/ functions
Functions
32 in github.com/expressjs/body-parser
⨍
Functions
32
◇
Types & classes
0
↓ 5 callers
Function
normalizeOptions
* Normalizes the common options for all parsers. * * @param {Object} options options to normalize * @param {string | string[] | Function} defaultTy
lib/utils.js:39
↓ 4 callers
Function
read
* 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 callers
Function
normalizeJsonSyntaxError
* Normalize a SyntaxError for JSON.parse. * * @param {SyntaxError} error * @param {Object} obj * @returns {SyntaxError} * @private
lib/types/json.js:171
↓ 1 callers
Function
createDecompressionStream
* Create a decompression stream for the given encoding. * @param {string} encoding * @param {Function} debug * @returns {Object} * @private
lib/read.js:214
↓ 1 callers
Function
createJsonParser
* Create a JSON parse function * * @param {object} [options] * @return {function} * @private
lib/types/json.js:71
↓ 1 callers
Function
createManyParams
(count)
test/urlencoded.js:955
↓ 1 callers
Function
createQueryParser
* Get the extended query parser. * * @param {Object} options * @returns {Function} * @private
lib/types/urlencoded.js:62
↓ 1 callers
Function
createServer
(opts)
test/json.js:967
↓ 1 callers
Function
createServer
(opts)
test/text.js:573
↓ 1 callers
Function
createServer
(opts)
test/raw.js:503
↓ 1 callers
Function
createServer
(opts)
test/urlencoded.js:972
↓ 1 callers
Function
createStrictSyntaxError
* Create strict violation syntax error matching native error. * * @param {string} str * @param {string} char * @returns {Error} * @private
lib/types/json.js:130
↓ 1 callers
Function
dump
* Dump the contents of a request. * * @param {Object} req * @param {Function} callback * @private
lib/read.js:244
↓ 1 callers
Function
expectKeyCount
(count)
test/urlencoded.js:990
↓ 1 callers
Function
firstNonWhitespaceChar
* Get the first non-whitespace character in a string. * * @param {string} str * @returns {string|undefined} * @private
lib/types/json.js:157
↓ 1 callers
Function
getCharset
* Get the charset of a request. * * @param {Object} req * @returns {string | undefined} * @private
lib/read.js:260
↓ 1 callers
Function
json
* Create a middleware to parse JSON bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/json.js:48
↓ 1 callers
Function
parameterCount
* 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 callers
Function
parseError
(str)
test/json.js:987
↓ 1 callers
Function
shouldContainInBody
(str)
test/json.js:995
↓ 1 callers
Function
typeChecker
* Get the simple type checker. * * @param {string | string[]} type * @returns {Function} * @private
lib/utils.js:25
↓ 1 callers
Function
verify
()
test/utils.js:63
Function
accept
(req)
test/json.js:586
Function
accept
(req)
test/text.js:273
Function
accept
(req)
test/raw.js:249
Function
accept
(req)
test/urlencoded.js:645
Function
bodyParser
* Create a middleware to parse json and urlencoded bodies. * * @deprecated * @public
index.js:53
Function
passthrough
* Passthrough function that returns input unchanged. * Used by parsers that don't need to transform the data. * * @param {*} value * @returns {*}
lib/utils.js:83
Function
raw
* Create a middleware to parse raw bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/raw.js:30
Function
text
* Create a middleware to parse text bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/text.js:30
Function
typeFunction
(req)
test/utils.js:202
Function
urlencoded
* Create a middleware to parse urlencoded bodies. * * @param {Object} [options] * @returns {Function} * @public
lib/types/urlencoded.js:34