* Create a middleware to parse text bodies. * * @param {Object} [options] * @returns {Function} * @public
(options)
| 28 | * @public |
| 29 | */ |
| 30 | function text (options) { |
| 31 | const normalizedOptions = normalizeOptions(options, 'text/plain') |
| 32 | |
| 33 | return function textParser (req, res, next) { |
| 34 | read(req, res, next, passthrough, debug, normalizedOptions) |
| 35 | } |
| 36 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…