release notes
release notes
Published 2/3/2023
MinorContains new features// GET http://example.com/?id=5555
app.Get("/", func(c *fiber.Ctx) error {
c.QueryInt("id", 1) // 5555
// ...
})
adds support for TLS 1.3's early data ("0-RTT") feature
app.Use(earlydata.New())
allows for fault-tolerant APIs where duplicate requests โ for example due to networking issues on the client-side โ do not erroneously cause the same action performed multiple times on the server-side.
app.Use(idempotency.New(idempotency.Config{
Lifetime: 42 * time.Minute,
// ...
}))
// If you want to forward with a specific domain. You have to use proxy.DomainForward.
app.Get("/payments", proxy.DomainForward("docs.gofiber.io", "http://localhost:8000"))
// Or this way if the balancer is using https and the destination server is only using http.
app.Use(proxy.BalancerForward([]string{
"http://localhost:3001",
"http://localhost:3002",
"http://localhost:3003",
}))
app.getString, app.GetBytes instead of utils.UnsafeString, utils.UnsafeBytes in ctx.go (#2297)Full Changelog: https://github.com/gofiber/fiber/compare/v2.41.0...v2.42.0
Thank you @0xdeface, @100gle, @TwiN, @cloudwindy, @dozheiny, @efectn, @leonklingele, @meehow, @pan93412, @rendiputra and @rhabichl for making this update possible.
release notes
Published 2/3/2023
MinorContains new features// GET http://example.com/?id=5555
app.Get("/", func(c *fiber.Ctx) error {
c.QueryInt("id", 1) // 5555
// ...
})
adds support for TLS 1.3's early data ("0-RTT") feature
app.Use(earlydata.New())
allows for fault-tolerant APIs where duplicate requests โ for example due to networking issues on the client-side โ do not erroneously cause the same action performed multiple times on the server-side.
app.Use(idempotency.New(idempotency.Config{
Lifetime: 42 * time.Minute,
// ...
}))
// If you want to forward with a specific domain. You have to use proxy.DomainForward.
app.Get("/payments", proxy.DomainForward("docs.gofiber.io", "http://localhost:8000"))
// Or this way if the balancer is using https and the destination server is only using http.
app.Use(proxy.BalancerForward([]string{
"http://localhost:3001",
"http://localhost:3002",
"http://localhost:3003",
}))
app.getString, app.GetBytes instead of utils.UnsafeString, utils.UnsafeBytes in ctx.go (#2297)Full Changelog: https://github.com/gofiber/fiber/compare/v2.41.0...v2.42.0
Thank you @0xdeface, @100gle, @TwiN, @cloudwindy, @dozheiny, @efectn, @leonklingele, @meehow, @pan93412, @rendiputra and @rhabichl for making this update possible.
โก๏ธ Express inspired web framework written in Go