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
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
Fenny
3568613dfa
Update 405 Tests
2020-06-21 11:02:17 +02:00
Fenny
44d739496d
Add 405 Method Not Allowed
2020-06-20 17:26:48 +02:00
wernerr
f1710ea1b6
fix the unnecessary pass through for routes with groups
2020-06-19 10:54:15 +02:00
Fenny
cc1b76de48
Fix test
2020-06-08 02:59:50 +02:00
Fenny
fbea5211d0
goreportcard fix
2020-06-08 02:55:19 +02:00
wernerr
ee3b44f9d1
repair some tests and add new tests for logger and server error handler
2020-06-07 14:43:25 +02:00
Fenny
0f890b6f9d
🔎 Add more test coverage
2020-06-06 07:27:01 +02:00
Fenny
64d74e840a
Hot fix fasthttp bug
2020-06-03 17:16:10 +02:00
fenny
2f402a5495
Merge pull request #434 from ReneWerner87/master
...
Fix a problem when matching the static routes
2020-06-02 17:57:05 -04:00
wernerr
5fe772f48a
Fix a problem when matching the static routes
2020-06-02 23:25:06 +02:00
Fenny
705b05216a
Update Static test
2020-06-01 12:54:32 +02:00
Fenny
dfb992dcdf
Add static index test
2020-05-29 10:22:54 +02:00
Fenny
90df05dd3a
Add more tests 87% coverage
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-27 22:53:40 +02:00
ReneWerner87
b81126d3d7
Reduce pre allocated memory, fix Etag benchmark, cleanup unused stuff
2020-05-23 14:56:52 +02:00
Fenny
cd624101cb
utils.AssertEqual
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:25:49 +02:00
Fenny
69d24b8579
Remove parallel
2020-05-16 05:03:23 +02:00
hendratommy
d6d73f42d0
Update app_test.go ( #377 )
...
testStatus200 for PUT mistaken with CONNECT
2020-05-13 20:30:59 +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
31f65aa842
Update app_test.go
2020-05-13 02:54:35 +02:00
Fenny
8bfc40a1e9
Add linter to workflows
2020-05-12 23:05:07 +02:00
Fenny
e719fa00bf
Use param support + optimizations ( #361 )
...
* Benchmark workflow
* Update router.go
* Clean root
* Add mutex
* Benchmark workflow
* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing
Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>
* Benchmark Workflow
* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing
Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>
* Update security workflow
* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing
Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>
* Make Ctx pool accessible
- Add ctx benchmarks
* v1.9.6
* v1.9.6
Co-Authored-By: ReneWerner87 <renewerner87@googlemail.com>
* Improve context functions
* Add utils benchmarks
* Update benchmarks & tests
* Add utils tests
* New tests
* update test
* Move fastpath tests
* offer negotiation
* Cleanup
* Update Vary
Co-Authored-By: RW <renewerner87@googlemail.com>
* Optimize Append
Co-Authored-By: RW <renewerner87@googlemail.com>
* Optimize more methods
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
* Add param support to Use
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
* Add use_params tests
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
* v1.9.7
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
* Tests
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
* v1.9.7
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
Co-Authored-By: József Sallai <jozsef@sallai.me>
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
* Update app_test.go
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
Co-Authored-By: József Sallai <jozsef@sallai.me>
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-Authored-By: Nifty255 <nifty255@users.noreply.github.com>
* Rename argument
Co-Authored-By: RW <renewerner87@googlemail.com>
* Add nosec for WriteByte
Co-Authored-By: RW <renewerner87@googlemail.com>
* Add media article
* Update media articles
* Fix typo
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
* Fix typo
Co-authored-by: ReneWerner87 <renewerner87@users.noreply.github.com>
Co-authored-by: ReneWerner87 <renewerner87@googlemail.com>
Co-authored-by: Vic Shóstak <vikkyshostak@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-authored-by: Nifty255 <nifty255@users.noreply.github.com>
2020-05-12 19:24:04 +02:00
Fenny
99f95b2561
v1.9.6 ( #360 )
...
**🚀 Fiber `v1.9.6`**
Special thanks to @renanbastos93 & @renewerner87 for optimizing the current router.
Help use translate our API documentation by [clicking here](https://crowdin.com/project/gofiber )
🔥 New
- `AcquireCtx` / `ReleaseCtx`
The Ctx pool is now accessible for third-party packages
- Fiber docs merged [Russian](https://docs.gofiber.io/v/ru/ ) translations **84%**
- Fiber docs merged [Spanish](https://docs.gofiber.io/v/es/ ) translations **65%**
- Fiber docs merged [French](https://docs.gofiber.io/v/fr/ ) translations **40%**
- Fiber docs merged [German](https://docs.gofiber.io/v/de/ ) translations **32%**
- Fiber docs merged [Portuguese](https://docs.gofiber.io/v/pt/ ) translations **24%**
🩹 Fixes
- Hotfix for interpolated params in nested routes https://github.com/gofiber/fiber/issues/354
- Some `Ctx` methods didn't work correctly when called without an `*App` pointer.
- `ctx.Vary` sometimes added duplicates to the response header
- Improved router by ditching regexp and increased performance by **817%** without allocations.
```go
// Tested with 350 github API routes
Benchmark_Router_OLD-4 614 2467460 ns/op 68902 B/op 600 allocs/op
Benchmark_Router_NEW-4 3429 302033 ns/op 0 B/op 0 allocs/op
```
🧹 Updates
- Add context benchmarks
- Remove some unnecessary functions from `utils`
- Add router & param test cases
- Add new coffee supporters to readme
- Add third party middlewares to readme
- Add more comments to source code
- Cleanup some old helper functions
🧬 Middleware
- [gofiber/adaptor](https://github.com/gofiber/adaptor ) `v0.0.1` Converter for net/http handlers to/from Fiber handlers
- [gofiber/session](https://github.com/gofiber/session ) `v1.0.0` big improvements and support for storage providers
- [gofiber/logger](https://github.com/gofiber/logger ) `v0.0.6` supports `${error}` param
- [gofiber/embed](https://github.com/gofiber/embed ) `v0.0.9` minor improvements and support for directory browsing
Co-authored-by: ReneWerner87 <renewerner87@googlemail.com>
2020-05-11 13:42:42 +02:00
Fenny
e2cc8106bb
Benchmark workflow ( #351 )
...
* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing
Co-authored-by: ReneWerner87 <renewerner87@users.noreply.github.com>
2020-05-09 15:15:34 +02:00
Fenny
e3b777bacf
🤖 v1.9.5 ( #344 )
...
* 🤖 v1.9.5
Co-authored-by: Fenny <fenny@protonmail.com>
2020-05-07 20:22:26 +02:00
Fenny
8ea25a79b9
💥 v1.9.4 ( #341 )
...
* Update router.go
Co-authored-by: Fenny <fenny@protonmail.com>
2020-05-07 19:28:21 +02:00
Fenny
0419d089e9
🧹 PR for 1.9.3 ( #321 )
...
* Add crowdin
* Update media links
* Update README_de.md
* Update README_de.md
* Update README_de.md
* Add crowdin link
* Print addr when listening
* Print addr on listening
* Add DisableStartupMessage
* Fix typo
* Update Test_BodyParser
* Support ETags
* v1.9.3
2020-04-28 21:34:34 +02:00
Fenny
4242901c92
v1.9.2
2020-04-23 00:33:36 +02:00
Fenny
673bd61fa1
BodyParser supports Query params
2020-04-13 09:01:27 +02:00
Fenny
79c378c384
v1.8.431
2020-03-31 10:03:39 +02:00
Fenny
f40d786caa
v1.8.4
...
- Remove middleware folder
- Extend travis testing
2020-03-22 01:51:53 +01:00
Fenny
21590dffe9
v1.8.2
2020-03-04 12:30:29 +01:00
Fenny
d547d441a3
New internal router alpha
2020-03-03 12:21:34 -05:00
Fenny
bf66978a7f
Fix comments
2020-02-22 17:03:30 -05:00
Fenny
1991d8db32
🎉 Official v1 Release
2020-02-21 18:07:43 +01:00
Fenny
b01e74187c
v0.7.0
2020-02-21 18:06:08 +01:00
Fenny
813850c83c
v2.0.0
2020-02-21 16:56:32 +01:00
Fenny
bdaac2d116
v1.7.0
2020-02-21 16:54:14 +01:00
Fenny
26ea13cac0
fix static
2020-02-21 03:54:36 +01:00
Fenny
21b77bf03e
😲
2020-02-21 01:54:50 +01:00