v1.12.0
🔥 New
- Abstract fiber.Router interface for
App
&Group
#476 - app.Settings.ReadBufferSize
Per-connection buffer size for requests' reading. This also limits the maximum header size. Increase this buffer if your clients send multi-KB RequestURIs and/or multi-KB headers (for example, BIG cookies). - app.Settings.WriteBufferSize
Per-connection buffer size for responses' writing. - app.Settings.Views
We added a new template interface namedViews
, click here to see an example.
The old Template interface is still backward compatible but it does not support the new features.
🧹 Updates
- The hyphen (
-
) and the dot (.
) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87
// http://localhost:3000/plantae/prunus.persica
app.Get("/plantae/:genus.:species", func(c *fiber.Ctx) {
c.Params("genus") // prunus
c.Params("species") // persica
})
// http://localhost:3000/flights/LAX-SFO
app.Get("/flights/:from-:to", func(c *fiber.Ctx) {
c.Params("from") // LAX
c.Params("to") // SFO
})
- ctx.Render(tmpl string, values interface{}, layout ...string) error #441
Now supports an additionallayout string
argument. Special thanks to @bdtomlin - gofiber/template bumped to
v1.5.0
- Add SECURITY.md #484
- Remove unnecessary badges #483
🩹 Fixes
- Avoid panic in
c.Subdomains
#475 - Do not use normalized path #482
- Fix unnecessary pass throughs for groups #487
- Fix
flag.Parse()
compatibility #469