fiber/middleware
M. Efe Çetin 10d6f69a89
v3 (feature): new redirection methods (#2014)
*  v3 (feature): new redirection methods

* add flash messages

* withinput, parsing flash message

* add tests

* add benchmarks

* gosec issues

* fix tests

* fix tests

* fix performance issues

* fix performance issues

* optimization.

* better names

* fix tests

* Update router.go

* fix

* fix old messaages with flash messages behavior, add new test case with req

* complete some reviews

* add pool for redirection.

* use constant

* update

*  v3 (feature): new redirection methods

* fix tests, optimize cookie parsing (9 allocs -> 1 alloc)

* test case for message includes comma

* cleanup

* optimization.

* some improvements for the redirect feature

* fix Benchmark_Redirect_Route_WithFlashMessages

* some improvements for the redirect feature

* Update redirect.go

* improve message parsing & test case

Co-authored-by: René Werner <rene@gofiber.io>
2022-09-23 08:17:34 +02:00
..
adaptor ♻️ v3 (enhancement): replace `c.Hostname()` -> `c.Host()` & add `c.Hostname()` that returns host without port 2022-09-06 18:43:06 +03:00
basicauth v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
cache ♻️ v3 (enhancement): remove automatic HEAD method creation from Get() 2022-09-05 17:41:39 +03:00
compress v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
cors v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
csrf Merge remote-tracking branch 'origin/master' into v3-beta 2022-09-03 23:56:45 +03:00
encryptcookie v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
envvar Merge remote-tracking branch 'origin/master' into v3-beta 2022-09-03 23:56:45 +03:00
etag v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
expvar v3 (feature): new redirection methods (#2014) 2022-09-23 08:17:34 +02:00
favicon v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
filesystem v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
helmet v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
keyauth Merge remote-tracking branch 'origin/master' into v3-beta 2022-08-19 14:33:31 +03:00
limiter v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
logger v3: fix logger benchmarks (#2074) 2022-09-06 17:54:39 +02:00
pprof v3 (feature): new redirection methods (#2014) 2022-09-23 08:17:34 +02:00
proxy v3 (feature): merge Listen methods & ListenConfig (#1930) 2022-09-08 07:57:05 +02:00
recover v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
redirect v3 (feature): new redirection methods (#2014) 2022-09-23 08:17:34 +02:00
requestid v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
rewrite Merge remote-tracking branch 'origin/master' into v3-beta 2022-08-19 14:33:31 +03:00
session Merge remote-tracking branch 'origin/master' into v3-beta 2022-09-03 23:56:45 +03:00
skip v3(tests): use testify for assertion (#2036) 2022-08-22 07:57:10 +02:00
timeout Merge remote-tracking branch 'origin/master' into v3-beta 2022-08-19 14:33:31 +03:00