INNER CODE UNIT · JavaScript

read

expressjs/body-parser · lib/read.js:45

function read (req, res, next, parse, debug, options) {
  if (onFinished.isFinished(req)) {
    debug('body already parsed')
    next()
    return
  }

  if (!('body' in req)) {
    req.body = undefined
  }

  // skip requests without bodies
  if (!hasBody(req)) {
    debug('skip empty body')
    next()
    return
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…