Type
Sets the Content-Type HTTP header to the MIME type listed here specified by the file extension.
func (c *Ctx) Type(ext string, charset ...string) *Ctx
app.Get("/", func(c *fiber.Ctx) error {
c.Type(".html") // => "text/html"
c.Type("html") // => "text/html"
c.Type("png") // => "image/png"
c.Type("json", "utf-8") // => "application/json; charset=utf-8"
// ...
})