Body

Contains the raw body submitted in a POST request.

  1. c.Body() string
  1. // curl -X POST http://localhost:8080 -d user=john
  2.  
  3. app.Post("/", func(c *fiber.Ctx) {
  4. // Get raw body from POST request:
  5. c.Body() // user=john
  6. })