Set

Sets the response’s HTTP header field to the specified key, value.

  1. c.Set(field, value string)
  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.Set("Content-Type", "text/plain")
  3. // => "Content-type: text/plain"
  4. })