Fenny
44d739496d
Add 405 Method Not Allowed
2020-06-20 17:26:48 +02:00
kiyon
437064e0c6
Abstract Router interface for App and Group.
2020-06-17 15:09:08 +08:00
Fenny
abbd18d815
Add CompressedFileSuffix
2020-06-07 20:35:41 +02:00
Fenny
3580b47b6e
🩹 Fix Golint
2020-06-06 07:35:12 +02:00
Fenny
ba67287a89
📋 Add route position
2020-06-06 07:31:01 +02:00
wernerr
53d79ca070
fix static routing for index.html
2020-06-03 21:35:49 +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
027823e084
Return 404 if Next does not match
2020-06-01 13:45:04 +02:00
Fenny
f9c08818ed
Return 404 if Next does not match
2020-06-01 13:36:51 +02:00
Fenny
3f8c6e482a
Static Content-Type Fix
...
Fix #https://github.com/gofiber/fiber/issues/420
2020-06-01 12:54:23 +02:00
Fenny
1827ccce7a
Default 404 if Use response is empty
2020-06-01 12:10:30 +02:00
Fenny
5567363941
Replace Sprintf
2020-06-01 12:04:52 +02:00
Fenny
06c119d49a
Send 404 Body Response
2020-06-01 11:24:22 +02:00
Fenny
ce3d950971
Fix partial wildcard in Static
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-27 22:54:09 +02:00
fenny
f2c027e715
Small changes ( #415 )
...
* Update template examples
* Update fasthttp to v1.13.1
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
* Cookie SameSite defaults to Lax
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-Authored-By: Queru <pascal@queru.net>
* Fix router bug
Co-Authored-By: RW <renewerner87@googlemail.com>
* Remove unused code
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-authored-by: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-authored-by: Queru <pascal@queru.net>
Co-authored-by: RW <renewerner87@googlemail.com>
2020-05-27 10:22:01 +02:00
fenny
e8b8fdfb35
Add Handler type ( #410 )
...
* Add new supporter
* Add new test condition
* Add Handler Type
2020-05-24 16:02:21 +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
8e91e848da
Fix case sensitivity params
...
- Improve performance
- Remove allocations
- Return case sensitive params
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:29:35 +02:00
Fenny
7dae73a40f
Refactor internal functions
2020-05-16 05:14:01 +02:00
Fenny
b8228e4546
Golint code
2020-05-12 23:24:04 +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
6e58bfcde3
Make ctx pool accessible + ctx benchmarks ( #355 )
...
**🚀 Fiber `v1.9.6`**
The Ctx pool is now accessible for third-party packages
🔥 New
- `func AcquireCtx(fctx *fasthttp.RequestCtx) *Ctx`
- `func ReleaseCtx(ctx *Ctx)`
🩹 Fixes
- Some `Ctx` methods didn't work correctly when called without an `*App` pointer.
- `ctx.Vary` sometimes added duplicates to the response header
🧹 Updates
- Add context benchmarks
- Remove some unnecessary functions from `utils`
🧬 Middleware
- [gofiber/adaptor](https://github.com/gofiber/adaptor ) `v0.0.1` Converter for net/http handlers to/from Fiber handlers
2020-05-11 04:30:31 +02:00
Fenny
72a5fb8ffa
Skip passing * value for root paths ( #347 )
...
* Skip passing * value for root paths
* Remove t.Log from test
Co-authored-by: Fenny <fenny@protonmail.com>
2020-05-07 21:02:24 +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
ae7d2bd754
Hotfix wildcard ( #342 )
...
* Hotfix wildcard
2020-05-07 19:43:25 +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
75604b0254
🩹 Fix 403 Directory Index is Forbidden ( #329 )
...
* Fix Directory Index is Forbidden
2020-04-30 14:21:33 +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
885c11c619
Fix typo
2020-04-24 22:21:41 +02:00
Fenny
4242901c92
v1.9.2
2020-04-23 00:33:36 +02:00
Fenny
79c378c384
v1.8.431
2020-03-31 10:03:39 +02:00
Fenny
48dd9846c6
Issue #250
...
Disable common errors
Fix issue #250
2020-03-29 14:13:02 +02:00
Fenny
7c629dec26
Update router.go
2020-03-24 12:21:55 +01:00
Fenny
5d7b03fd37
Update router.go
2020-03-24 12:21:25 +01:00
Fenny
a4c0aa11d7
Update router.go
2020-03-24 12:20:07 +01:00
Fenny
d620a97b34
Update router.go
2020-03-24 12:19:22 +01:00
Fenny
3c333c2a51
Update router.go
2020-03-24 12:12:22 +01:00
Fenny
d5a7110585
Update router.go
2020-03-24 11:11:52 +01:00
Fenny
3c8f582cad
More cleaning
2020-03-24 05:31:51 +01:00
Fenny
f40d786caa
v1.8.4
...
- Remove middleware folder
- Extend travis testing
2020-03-22 01:51:53 +01:00
Fenny
b425a5b4bf
v1.8.34
2020-03-20 16:43:28 +01:00
Fenny
5c619e872c
Stale isEqual for now
2020-03-17 13:24:08 +01:00
Fenny
3cea91e3da
Apply strict / case options to override
2020-03-16 22:30:00 +01:00
Fenny
c7baaf6243
v1.8.33
2020-03-16 15:00:58 +01:00
Fenny
bec9eecb29
v1.8.32
2020-03-15 14:45:57 +01:00