Commit Graph

62 Commits (691d2e6ad5c565eea26676a04064cf99fd515b84)

Author SHA1 Message Date
M. Efe Çetin 691d2e6ad5
🗑️ deprecate: go 1.14 & go 1.15 support deprecation (#2172)
* 🗑️ deprecate: go 1.14 & go 1.15 support deprecation
https://github.com/valyala/fasthttp/pull/1379

* fix tests
2022-10-26 11:51:50 +02:00
Serhat Şevki Dinçer 870f9427a2
Optimize App.buildTree() (#1809)
*  Optimize App.buildTree()

- Reduces reads from / writes to slices
- Reduces reads from maps
- Increases sorting speed

*  Add Benchmark_Startup_Process()
2022-03-07 19:01:30 +01:00
Gusted 7b7dcf29f7
♻️ Tidy up the codebase (#1613)
* run gofmt

* add t.Helper()

* Simplify assigns

* Simplify make operation

* Remove unused field in struct

* Fix typo

* Run gofumpt ./

* Consistent spacing

* len(...) can never be negative

* Use ReplaceAll

* Simplify operation

* Remove deadcode

* Fix typo

* Tidy up `} else { if ...`

* Fix AssertEqual

* Remove t.Helper() to fix go1.14.15
2021-11-05 08:00:03 +01:00
Fufu 2c6ffb7972
Fix: register static file routing with trailing slash (#1556) 2021-10-05 10:55:11 +02:00
Fufu b94870d886
Fix: static file routing path rewrite. (#1538)
* Fix: static file routing path rewrite.

* Add: static file routing test cases.

* Update: change os.CreateTemp to ioutil.TempFile for go1.14

* Update: optimize test cases.
2021-10-01 12:51:48 +02:00
RW 34520e75f8
Fix - 🐛 The escape of special characters in route path does not work properly #1454 (#1462)
* Fix - 🐛 The escape of special characters in route path does not work properly #1454
2021-07-30 20:39:10 +02:00
Diego Sandrim 0dc67e80d2 Moves .getBytes and .getString from package variable to App instance variable, avoiding data race when creating a new App. 2021-05-05 17:24:26 -03:00
ReneWerner87 42755c30e6 Accelerate start process for many routes #1081 2021-01-24 13:02:21 +01:00
kiyon d0e828dbf5 🍀 Improve test coverage 2020-10-24 16:24:48 +08:00
kiyon 4c89377631 🩹 Fix #945 2020-10-21 14:50:33 +08:00
Fenny 9fd68c62b0 ✏ update comments 2020-09-29 21:49:50 +02:00
Fenny b96cbff310
Merge pull request #774 from Fenny/master
👂 uncomment internal benchmarks
2020-09-14 12:15:24 +02:00
Fenny 2768ea2a77 🙌 make utils public
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:12:29 +02:00
ReneWerner87 9923caff8a 🪓 Code separation for utils (🧹clean code)
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-14 10:48:01 +02:00
Fenny a3cac71ae8 🔦 move utils to internal 2020-09-14 09:09:06 +02:00
Fenny ec5d66e7a8 v2 2020-09-13 11:20:11 +02:00
ReneWerner87 ad7f4df9a7 🦟 Fix star routes 2020-09-02 20:59:42 +02:00
ReneWerner87 df3c48a734 🌵hybrid routing with tree and fast router 2020-08-10 10:51:38 +02:00
ReneWerner87 e802c41f41 Merge branch 'hybrid_routing' into improve_route_behavior 2020-08-10 10:14:31 +02:00
ReneWerner87 945b61d1c3 🌵hybrid routing with tree and fast router 2020-08-09 21:53:15 +02:00
ReneWerner87 b8ca4c9b8a 🚀 improve routing behavior 2020-08-07 21:42:53 +02:00
wernerr b29182db31 🚀 compress same route's handler 2020-07-20 19:34:44 +02:00
wernerr b9bdc0d4a8 🚀 compress same route's handler 2020-07-20 19:29:54 +02:00
wernerr baf44ff05e Merge remote-tracking branch 'origin/app-routes' into app-routes 2020-07-20 18:26:09 +02:00
kiyon 91f8cc891c 🚀 compress same route's handler and sort routes when registering 2020-07-20 23:14:51 +08:00
kiyon 174eb0e33d 🚀 compress same route's handler and sort routes when registering 2020-07-20 21:43:01 +08:00
Fenny ca1bd29359 🧪 Add TLS Tests 2020-07-15 18:50:28 +02:00
Fenny da85c85c14 🧪 Increase test coverage: 96% 2020-07-15 17:43:30 +02:00
kiyon 75be864c12 👍 improve router test coverage 2020-07-15 10:37:25 +08:00
Fenny 964f3c59ae 🔨 Make Params available in Route 2020-07-05 11:17:42 +02:00
ReneWerner87 d57651835b improve routing performance 2020-06-29 22:51:41 +02:00
ReneWerner87 eb0b365111 🚀 Added possibility to work with urlencoded special characters in the route 2020-06-25 15:25:16 +02:00
ReneWerner87 cf4836c606 🚀 Added possibility to work with urlencoded special characters in the route 2020-06-25 08:44:29 +02:00
Fenny 578e566475 Add 405 Support 2020-06-21 12:17:22 +02:00
Fenny 4102262dd7 Add benchmark 2020-06-21 11:11:45 +02:00
kiyon 3b513cd8b0 add test case for ensuring router interface implementation 2020-06-17 22:57:58 +08:00
Fenny fbea5211d0 goreportcard fix 2020-06-08 02:55:19 +02:00
wernerr 832d952b5f swap out the test routes into a json file 2020-06-07 15:42:55 +02:00
Fenny 1d16f99438 Update comment 2020-06-03 00:02:26 +02:00
Fenny f9c08818ed Return 404 if Next does not match 2020-06-01 13:36:51 +02:00
Fenny a58bc02eca Update benchmarks 2020-06-01 12:05:02 +02:00
Fenny 5c5afa88ae Add 404 Benchmark 2020-06-01 11:54:23 +02:00
Fenny d940948112 Update variable name
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-27 22:54:20 +02:00
wernerr dacec74f17 🐞 Panic on ":param" #405 2020-05-24 14:49:11 +02:00
wernerr 0ac9b1c635 🐞 Panic on ":param" #405 2020-05-24 14:47:32 +02:00
wernerr 04642a3404 🐞 Panic on ":param" #405 2020-05-24 14:01:52 +02:00
wernerr 3d2d072074 🐞 Panic on ":param" #405 2020-05-24 08:47:47 +02:00
Fenny 7430e6c154 Introduce gofiber/utils
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:30:03 +02:00
Fenny e0b13d9ca4
Update test & benchmark (#374)
Co-Authored-By: RW <renewerner87@googlemail.com>

* Add nosec for WriteByte

* test persistens for benchmark results

* Add tests & benchmark

* Update app_test.go

* Update benchmark.yml
2020-05-13 20:21:49 +02:00
Fenny 16ac0e5ef1
Add benchmark charts 2020-05-13 00:54:24 +02:00