Get

Returns the HTTP request header specified by the field.

The match is case-insensitive.
  1. c.Get(field string) string
  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.Get("Content-Type") // "text/plain"
  3. c.Get("CoNtEnT-TypE") // "text/plain"
  4. c.Get("something") // ""
  5. })

Returned value is only valid within the handler. Do not store any references.
Make copies or use the
Immutable setting instead. Read more…