最終更新:2022-09-16 (金) 13:59:53 (581d)  

req.body
Top / req.body

Contains key-value pairs of data submitted in the request body.

https://expressjs.com/en/api.html#req.body

メモ

  • By default, it is undefined, and is populated when you use body-parsing middleware such as express.json?() or express.urlencoded?().
  • app.use(express.json()) // for parsing application/json
    app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded

Content-Type

Multer

関連

参考