Commit Graph

89 Commits (1468a049c4b2ee3aa68d377f7226d3a7e3fb4e78)

Author SHA1 Message Date
Fenny 0d2eb334d6 🧪 update test cmd 2020-11-14 03:31:46 +01:00
jonanOribe 4fc45599d2 Update app_test.go 2020-11-10 18:22:02 +01:00
jonanOribe d27b4cfa1e Update app_test.go 2020-11-10 18:10:11 +01:00
kiyon d0e828dbf5 🍀 Improve test coverage 2020-10-24 16:24:48 +08:00
Roman 3e6dfb313b 🔥set a `Cache Control` header for static ressources
Right now, each static request returns the file without any cache control
header. If you are using `app.Static` to serve your assets, the
browser shouldn't cache it. This PR introduces a way to set the cache
control header (if the file was found) on the file response to set a
custom max-age to e.g. cache it 1 year.
2020-10-07 15:44:38 +02:00
Roman acb6bbea2b ♻️ refactor app test to use the constants to access the http methods and headers 2020-10-07 11:07:12 +02:00
David Mazary 618b753230 🚨 Fix gosimple lint warnings 2020-10-03 13:20:54 -04:00
Fenny b4bec8df6c
Merge pull request #877 from kiyonlin/fix-app-group
👷 fix group.Mount
2020-10-03 18:47:56 +02:00
kiyon 839c8f1447 👷 fix group.Mount 2020-10-04 00:36:11 +08:00
kiyon 407cdfaf7a 👷 add app test case to improve coverage 2020-10-04 00:05:28 +08:00
Fenny 3b5997a3df 🔨 fix mount tree build
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-26 13:46:14 +02:00
Fenny 2b72fd2162 🩹 ignore trailing slash with static directories 2020-09-20 21:48:45 +02:00
ReneWerner87 c822a17c72 ☠️ Improve error handling flow
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-18 20:44:00 +02:00
kiyon 27cd8ad9c5 👷 improve app and prefork test cases 2020-09-15 09:02:24 +08:00
Fenny 2768ea2a77 🙌 make utils public
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:12:29 +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
kiyon 96b571165a 👷 remove read timeout test case temporarily 2020-07-29 15:18:49 +08:00
kiyon 0d4b3c4c27 👷 use different port in every test case 2020-07-29 14:52:13 +08:00
kiyon dd33a79772 👷 improve read timeout test case 2020-07-29 13:08:33 +08:00
kiyon 3779723507 👷 add app.Test test cases 2020-07-29 09:14:15 +08:00
kiyon d15aae1e56 👷 add app.init test cases 2020-07-29 08:46:36 +08:00
kiyon c460cba729 👷 add app.Stack test cases 2020-07-28 16:48:05 +08:00
Fenny f62be7c5ee 🗑️ Remove deprecated tests
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: kiyon <kiyonlin@users.noreply.github.com>
2020-07-22 02:06:56 +02:00
ReneWerner87 b34a77bc96 💉 Sync route method metadata
Co-authored-by: Fenny <fenny@gofiber.io>
2020-07-21 23:30:52 +02:00
kiyon 24a87436ae 🎱 The actual count of routes will be reduced after compression 2020-07-21 08:53:36 +08:00
wernerr 647e08ec00 🚀 compress same route's handler 2020-07-20 19:48:43 +02:00
wernerr b9bdc0d4a8 🚀 compress same route's handler 2020-07-20 19:29:54 +02:00
kiyon 174eb0e33d 🚀 compress same route's handler and sort routes when registering 2020-07-20 21:43:01 +08:00
kiyon 86af9e486c 💯 remain code coverage 2020-07-18 10:42:22 +08:00
kiyon c89bfb3634 🔔 fix ctx matched bug, it should be reset to false when acquired 2020-07-17 09:34:27 +08:00
kiyon 30a704b5f9 👷 improve test coverage 2020-07-16 16:42:36 +08:00
Fenny 0080aff71d 🧪 Add TLS tests 2020-07-15 18:56:42 +02: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 a70f37adff 👍 improve app test coverage 2020-07-15 10:20:53 +08:00
kiyon 80e222093d 🍤 improve app test coverage 2020-07-14 15:23:41 +08:00
Fenny b133583f66 🧪 Update go golint 2020-07-13 15:41:22 +02:00
songjiayang 4ef6f9b0e1 Update for golint 2020-07-13 10:47:14 +08:00
Fenny fc5d2d7e66 📦 Update test case
Co-Authored-By: kiyon <kiyonlin@163.com>
2020-07-10 14:16:35 +02:00
Fenny 9e51dd4ead 📦 Update test case 2020-07-10 14:15:58 +02:00
Fenny 3484897184 🐛 Avoid method override on 405 2020-07-10 13:57:53 +02:00
Fenny 2d034f2026 🧹 Remove comment 2020-07-09 13:37:30 +02:00
fenny 6467e41889
Merge pull request #566 from Fenny/master
🔧 Don't reset headers on ErrorHandler
2020-07-08 15:15:22 -04:00
Fenny da201eebd0 🔨 Replace Serve with Listener 2020-07-08 21:07:24 +02:00
kiyon 9b14fc78d1 💡 add ctx.matched to determine if request matched a non USE route. 2020-07-08 22:40:44 +08:00
kiyon ce3d44613c 🔧 fix #556 remove ctx.matched things 2020-07-07 23:25:02 +08:00
Fenny 33d5a9cb7b 🧪 Update Shutdown Test 2020-07-06 17:51:25 +02:00
Fenny 5250a33879 Add defaultvalue 2020-07-04 10:11:23 +02:00
Fenny 88f67a0602 Update app_test.go 2020-06-27 17:16:31 +02:00