1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 20:03:43 +00:00

105 Commits

Author SHA1 Message Date
RW
4b62cfbb61
Add test run for go1.17 (#1501)
* Add test run for go1.17

default type for yaml is changed to „application/x-yaml"
-> instead of the yaml´s we use the html and json files for the test
2021-08-22 09:48:07 +02:00
Sujit Baniya
8ab5c657c6
🔥 FEATURE: Allow adding App Name to customizing the startup message (#1418)
* Add Global Layout for view render

* Add test case for Views Layout

* Update ctx_test.go

* Add App Name function to pass custom app name

* Remove json tag for function

* Change func to string

* Add test for AppName

Co-authored-by: RW <rene@gofiber.io>
2021-07-16 08:44:11 +02:00
Troy
08b2b71197
Add support for streaming the request body. (#1423)
* update fasthttp

* allow req body streaming

* multipart form streaming

* update fasthttp

* allow req body streaming

* multipart form streaming

* Testing
2021-07-11 11:45:46 +02:00
wernerr
d7ca1efd13 fix error after deleting the stale yaml 2021-05-28 09:40:48 +02:00
kiyon
22848f7e31
👷 Add testcases for ListenTLS (#1320) 2021-05-07 09:24:48 +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
Diego Sandrim
24f55ef580 Adds a test to detect data race in .New and .Test funcs 2021-05-05 16:43:07 -03:00
bestgopher
056c6808af
Use atomic instead of mutex when counting the route handler. (#1314)
* use atomic instead of mutex when counting

* 📒 router: fix typo error
2021-05-05 17:53:54 +02:00
Dario Leittersdorf
a28afaae75
🩹Fix: Startup message doesn't show correct amount of Handlers after mounting (#1302)
* fix: pass handlerCount when mounting to an App

* test: check for correct handlerCount after mounting an instance

* fix: pass handlerCount when mounting to a Group

* test: check for correct handlerCount after mounting to a Group

Co-authored-by: dleitter <dario.leittersdorf@bonprix.net>
2021-05-04 09:21:04 +02:00
Kiyon
b46185e1b0 👷 Fix hardcode tls to startupMessage in app.Listener 2021-02-23 16:40:17 +08:00
Kiyon
00dbdd5fb3 👷 Add network type constant 2021-02-08 11:35:17 +08:00
Martin Lukasik
0b88c808e5 add test case for App_Static_Next 2021-01-23 08:31:45 +01:00
ReneWerner87
d4bbd08bbb 🐛 UnescapePath not working #1102
change arabic test string to test

Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:52:34 +01:00
ReneWerner87
4f5e57d8de 🐛 UnescapePath not working #1102
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:46:50 +01:00
ReneWerner87
b51def0bb8 🐛 UnescapePath not working #1102
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:21:54 +01:00
Kiyon
7c88fa41e0 👷 Add test cases for group router empty prefix path 2020-12-28 13:13:24 +08:00
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