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

1233 Commits

Author SHA1 Message Date
Fenny
9574b148e2 Fix Golint errcheck 2020-05-16 05:22:49 +02:00
Fenny
7dae73a40f Refactor internal functions 2020-05-16 05:14:01 +02:00
Fenny
91f499ac9d Divide layer in separate file 2020-05-16 05:13:34 +02:00
Fenny
9bf2a618e9 Add toLower, toUpper & trimRight 2020-05-16 05:13:01 +02:00
Fenny
a6adc3a299 Add t.Parallel() to tests 2020-05-16 05:12:29 +02:00
Fenny
94ef9ae451 Improve benchmarks
Remove tests that are impossible to improve.
2020-05-16 05:12:12 +02:00
Fenny
3fb483e9df Refactor internal functions 2020-05-16 05:11:25 +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
69d24b8579 Remove parallel 2020-05-16 05:03:23 +02:00
Fenny
6498e04a98 Ignore test files with golint 2020-05-16 05:02:58 +02:00
Fenny
b8e504110a Run benchmarks on 1.14 2020-05-16 05:02:36 +02:00
Fenny
e45205fb61
Update README_ar_SA.md 2020-05-16 02:48:14 +02:00
abdulaziz alfuhigi
b5f128dd94
create README_ar_SA.md (#380)
translate README.md to arabic
2020-05-16 02:47:31 +02:00
hendratommy
d6d73f42d0
Update app_test.go (#377)
testStatus200 for PUT mistaken with CONNECT
2020-05-13 20:30:59 +02:00
hendratommy
518a1d10ae
Create .gitignore (#376)
add .gitignore
2020-05-13 20:30:33 +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
f5ad2c0766
Merge pull request #370 from Fenny/master
Update tests
2020-05-13 04:10:42 +02:00
Fenny
8f82bee55a Update benchmark.yml 2020-05-13 03:07:28 +02:00
Fenny
05de4de055 Update benchmark.yml 2020-05-13 03:04:52 +02:00
Fenny
28f07a722b Update benchmark.yml 2020-05-13 03:02:37 +02:00
Fenny
eb917359b5 Merge remote-tracking branch 'upstream/master' 2020-05-13 02:59:35 +02:00
Fenny
31f65aa842 Update app_test.go 2020-05-13 02:54:35 +02:00
Fenny
3a0d808152 Update ctx_bench_test.go 2020-05-13 01:46:16 +02:00
Fenny
e009a7112d
Merge pull request #368 from Fenny/master
Remove benchmark results
2020-05-13 01:36:48 +02:00
Fenny
3d32a8789c Update benchmark.yml 2020-05-13 01:27:43 +02:00
Fenny
a150613328 Update benchmarks 2020-05-13 01:17:45 +02:00
Fenny
d14f22c45f Update benchmark.yml 2020-05-13 01:12:14 +02:00
Fenny
5c448a5597 Remove benchmark data 2020-05-13 01:04:06 +02:00
Fenny
d729bb8cd5 Merge remote-tracking branch 'upstream/master' 2020-05-13 01:00:31 +02:00
Fenny
ded56306b7
Add files via upload 2020-05-13 00:56:23 +02:00
Fenny
4d7fdf5cf0
Create .editorconfig 2020-05-13 00:55:35 +02:00
Fenny
adcf0e4eb2
Delete README.md 2020-05-13 00:54:58 +02:00
Fenny
16ac0e5ef1
Add benchmark charts 2020-05-13 00:54:24 +02:00
Fenny
47bd9f572d
Add benchmark charts (#366)
* Initial Commit

* Create data.js

* add Benchmark (go) benchmark result for 991344f0329336ee320fb17c7b8f9ee2af9eaaae

* add Benchmark (go) benchmark result for a08dbd5c5bb1e621deb8e7deb621d846f3473913

Co-authored-by: github-action-benchmark <github@users.noreply.github.com>
2020-05-13 00:52:06 +02:00
Fenny
a08dbd5c5b Update ctx_bench_test.go 2020-05-13 00:49:16 +02:00
Fenny
991344f032 Update benchmark.yml 2020-05-13 00:45:16 +02:00
Fenny
2e52c71c63 Update benchmark.yml 2020-05-13 00:39:51 +02:00
Fenny
f4acf18c9f Uppdate benchmark.yml 2020-05-13 00:32:25 +02:00
Fenny
667124a9f4 Breaking github 2020-05-13 00:07:11 +02:00
Fenny
d4f977fe7f Update benchmark workflow 2020-05-12 23:53:55 +02:00
Fenny
0a44557099 Save benchmark results in .github folder 2020-05-12 23:40:05 +02:00
Fenny
8b8f2ad26a Fix Golint errcheck 2020-05-12 23:26:05 +02:00
Fenny
b8228e4546 Golint code 2020-05-12 23:24:04 +02:00
Fenny
6e0595ee25 Update linter workflow 2020-05-12 23:06:58 +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>
v1.9.6
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
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