INNER CODE UNIT · JavaScript

raw

expressjs/body-parser · lib/types/raw.js:30

function raw (options) {
  const normalizedOptions = normalizeOptions(options, 'application/octet-stream')

  const readOptions = {
    ...normalizedOptions,
    // Skip charset validation and parse the body as is
    skipCharset: true
  }

  return function rawParser (req, res, next) {
    read(req, res, next, passthrough, debug, readOptions)
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…