-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃尶 v1.12.x Changelog #416
Comments
If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
What about hyphens in routes? It was planned for V1.11. |
@invipal in the last version we had put more focus on stability, user friendliness and performance, so the feature has been dropped but it will come in the next versions, i will work on it in the next days |
@invipal hyphen support is now available // 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
}) |
Thank you @Fenny, with this feature, Fiber now fully met our expectation for developing our next project. |
馃敟 New
Converts all encoded characters in the route back before setting the path for the context, so that the routing can also work with urlencoded special characters 馃殌 Added possibility to work with urlencoded special characters in the route聽#506
App
&Group
Abstract Router interface for App and Group.聽#476Per-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).
Per-connection buffer size for responses' writing.
We added a new template interface named
Views
, click here to see an example.The old Template interface is still backward compatible but it does not support the new features.
馃Ч Updates
-
) and the dot (.
) are now interpreted literally in paths, they can be used along with route parameters for useful purposes. Thank you @ReneWerner87Now supports an additional
layout string
argument. Special thanks to @bdtomlinv1.5.0
app.Handler
is now accessible 馃殌 How about compatibling with httpexpect聽#485 馃殌 How about compatibling with httpexpect #485聽#504gofiber/utils v0.0.9
app.Listen
documentation 馃挕 Show possible signatures聽#561MethodNotAllowed
process 馃殌 Better performance for MethodNotAllowed process聽#563 @ReneWerner87馃┕ Fixes
405
when another method is available on the same path 馃殌 add 405 method not allowed handler聽#492c.Subdomains
Check index to avoid slice bounds out of range panic聽#475flag.Parse()
compatibility 馃悰 flag.Parse not working when using Prefork on Fiber聽#469SendFile
304 cache behavior 馃 SendFile should send a 304?聽#516405
forUse
cases 馃悰 405 is not responded when use middleware聽#556-prefork-child
flag fromflag.Usage
馃悰 Fiber's flags are part of the printed usage聽#522 馃┕ Improve flag handling聽#542 @doingodsworkThe text was updated successfully, but these errors were encountered: