Fenny
34ac831143
Add json formatting
2020-07-02 20:26:38 +02:00
Fenny
1d4478bf00
🧹 🧹 Cleanup
2020-07-02 13:51:10 +02:00
kiyon
3a6ae283b1
replace some ctx.Fasthttp.Response.xxx
method with helper functions.
2020-07-01 14:32:38 +08:00
Fenny
909c683e12
Improve routing calculation
2020-06-30 00:27:28 +02:00
ReneWerner87
dcc2d8d046
🤔 Why refreshing single page in Browser could lost html document via sendfile method? #516
...
- fix this issue
2020-06-29 23:31:41 +02:00
ReneWerner87
d57651835b
improve routing performance
2020-06-29 22:51:41 +02:00
ReneWerner87
cf4836c606
🚀 Added possibility to work with urlencoded special characters in the route
2020-06-25 08:44:29 +02:00
Fenny
5b37af25f8
Avoid panic on runtime
2020-06-20 14:17:50 +02:00
kiyon
bd4c250f41
remove the duplicate statement
2020-06-20 14:41:50 +08:00
Humaid AlQassimi
10dbb5417e
ctx: do not use normalized path
2020-06-19 01:25:25 +04:00
kiyon
a82da6bef7
Check index to avoid slice bounds out of range panic
2020-06-17 11:04:20 +08:00
Fenny
fd37fa95ba
Update message
2020-06-12 12:49:58 +02:00
Fenny
f79fb58278
Add layout support in Render
2020-06-12 12:29:57 +02:00
Fenny
25100d3dbe
fix gosec
2020-06-08 02:56:33 +02:00
Fenny
fbea5211d0
goreportcard fix
2020-06-08 02:55:19 +02:00
Fenny
bffd8b06b1
Add return e rror for sendfile
2020-06-08 02:45:48 +02:00
Fenny
fb2863ce9a
Fix buffer reset
2020-06-07 22:34:29 +02:00
Fenny
d48583619a
Add Render test
2020-06-07 22:23:10 +02:00
Fenny
d7dd49f01a
Merge remote-tracking branch 'upstream/master'
2020-06-07 22:17:31 +02:00
Fenny
b4244de892
Update test
2020-06-07 22:17:10 +02:00
fenny
748935aace
Merge pull request #451 from otaku/master
...
🩹 fix ctx.Render when using Go Templates
2020-06-07 22:16:48 +02:00
wernerr
43d72225c4
organise startup message
2020-06-07 21:30:15 +02:00
Fenny
abbd18d815
Add CompressedFileSuffix
2020-06-07 20:35:41 +02:00
Alexander Do
6da47d4295
Utilize bytebufferpool for Render
2020-06-07 11:07:06 -07:00
Alexander Do
6e22a75e91
fix ctx.Render when using Go Templates
2020-06-07 10:40:35 -07:00
Fenny
22555c0806
Update
2020-06-07 10:13:50 +02:00
Fenny
19d97173cb
Update ctx.go
2020-06-06 21:09:26 +02:00
Fenny
a8f8f30b5d
Update error handler
2020-06-06 20:49:02 +02:00
Fenny
5739c24f0d
Update ctx.go
2020-06-06 20:45:05 +02:00
Fenny
f0a9846bf0
Update error handler
2020-06-06 20:42:08 +02:00
Fenny
3c5fb0f426
📙 utf-8 support
2020-06-06 07:31:33 +02:00
Fenny
8cfadbde29
Add io.Reader comments
...
Co-Authored-By: Roman Kredentser <shareed2k@gmail.com>
2020-06-01 15:00:42 +02:00
Fenny
69596c03b9
Add io.Reader support
...
Co-Authored-By: Roman Kredentser <shareed2k@gmail.com>
2020-06-01 14:53:45 +02:00
Fenny
806bcea128
Add immutable disclaimer
2020-05-31 01:34:16 +02:00
Fenny
7aba20b3a3
Improve stacking
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-27 22:53:51 +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
02b4061b44
Add Handler & Templates interface ( #412 )
...
* Add new supporter
* Add new test condition
* Add Handler Type
* Update Templates Interface
2020-05-25 13:31:20 +02:00
wernerr
3d2d072074
🐞 Panic on ":param" #405
2020-05-24 08:47:47 +02:00
Fenny
73ce74b706
Hot fix
...
@ReneWerner87
2020-05-23 23:33:28 -04:00
Fenny
5965dca6cd
Fix lint errors
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:53:30 +02:00
Fenny
d59282db20
Improve performance
...
- Move ctx pool to *App
- Improve performance on most methods
- Introduce gofiber/utils
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:26:30 +02:00
Fenny
9574b148e2
Fix Golint errcheck
2020-05-16 05:22:49 +02:00
Fenny
0069c1b92e
Update ctx.go
2020-05-16 05:10:47 +02:00
Fenny
caef8be9ad
Optimizations
...
- Routes in stack are renamed to Layers
- ctx.Body(key ...string) -> ctx.Body()
- ctx.Cookies(key ...string) -> ctx.Cookies(key string)
- Remove referrer type check in ctx.Get
- Validate method override
- Remove unnecessary nil setters in ctx.Next
- Clarify compression bool in c.SendFile
2020-05-16 05:10:37 +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
8b8f2ad26a
Fix Golint errcheck
2020-05-12 23:26:05 +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
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
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