1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-22 12:33:42 +00:00

94 Commits

Author SHA1 Message Date
Fenny
5250a33879 Add defaultvalue 2020-07-04 10:11:23 +02:00
ReneWerner87
d57651835b improve routing performance 2020-06-29 22:51:41 +02:00
Fenny
578e566475 Add 405 Support 2020-06-21 12:17:22 +02:00
Fenny
4102262dd7 Add benchmark 2020-06-21 11:11:45 +02:00
Fenny
8db7e169a3 Update utils.go 2020-06-21 11:04:46 +02:00
Fenny
ef264df776 Update utils.go 2020-06-21 11:03:17 +02:00
Fenny
3568613dfa Update 405 Tests 2020-06-21 11:02:17 +02:00
Fenny
09116ae22b Add 405 Support 2020-06-21 10:47:03 +02:00
Fenny
44d739496d Add 405 Method Not Allowed 2020-06-20 17:26:48 +02:00
wernerr
e674d679df move path matching and registration in separate file "path.go" 2020-06-14 12:37:09 +02:00
wernerr
f816c6706f add support for -. chars in the route 2020-06-14 12:06:14 +02:00
wernerr
bbcff3f375 add support for -. chars in the route 2020-06-13 18:34:31 +02:00
wernerr
0a615653cb add support for -. chars in the route 2020-06-13 18:18:25 +02:00
wernerr
91a5185307 add support for -. chars in the route 2020-06-13 16:54:38 +02:00
wernerr
3e6261b7c4 add support for -_. chars in the route 2020-06-12 16:06:12 +02:00
wernerr
f4292c9030 add support for -_. chars in the route 2020-06-12 13:29:16 +02:00
Fenny
5d649f7270 🚚 Add Errors 2020-06-06 18:53:51 +02:00
Fenny
cd9aa0f9c5 ⌨️ Fix typo 2020-06-06 07:30:30 +02:00
Fenny
027823e084 Return 404 if Next does not match 2020-06-01 13:45:04 +02:00
ReneWerner87
b81126d3d7 Reduce pre allocated memory, fix Etag benchmark, cleanup unused stuff 2020-05-23 14:56:52 +02:00
Fenny
7747f73614 Remove un-used map
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:53:20 +02:00
Fenny
63cfbf4bc2 Replace utils with gofiber/utils
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:30:21 +02:00
Fenny
9bf2a618e9 Add toLower, toUpper & trimRight 2020-05-16 05:13:01 +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
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
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
Fenny
5594ba5fdc Cleanup test files 2020-05-07 22:49:26 +02:00
Fenny
9f5a22af35 🤖 v1.9.5 2020-05-07 20:15:27 +02:00
Fenny
c6eb71434a Cleanup 2020-05-07 18:16:20 +02:00
Fenny
572ad26816 Cleanup some things 2020-05-07 18:15:59 +02:00
Fenny
fb2e053b89 Use constants 2020-05-07 17:57:21 +02:00
Fenny
0cb6f0fdac [][]*Route 2020-05-07 17:11:21 +02:00
Fenny
39d142ee09 New params parser 2020-05-06 15:59:40 +02:00
Fenny
3330dd81e4 Replace two value range loops 2020-04-29 00:15:52 +02:00
Fenny
2267f8790c v1.9.3 2020-04-28 21:29:20 +02:00
Fenny
e5e887f9e0 Merge remote-tracking branch 'upstream/master' 2020-04-28 19:45:40 +02:00
Fenny
f7e00f4461 Support ETags 2020-04-28 19:45:23 +02:00
bestgopher
86a9b05d09
Update c.Fresh(#311) (#317)
* update: ctx.BodyParser

* add #311

* Update utils.go
2020-04-28 19:44:22 +02:00
Fenny
683a33b143 Print addr when listening 2020-04-26 05:57:18 +02:00
bestgopher
2f4cd15b9f
add two statuscodes: 421,103 (#306)
* Add HTTP status codes: 421,103
2020-04-26 05:54:05 +02:00
Fenny
4242901c92 v1.9.2 2020-04-23 00:33:36 +02:00
Fenny
8c00ce8f5f v1.9.0 2020-04-12 14:58:05 +02:00
Fenny
6a42bc6450 v1.8.43 2020-03-27 06:56:58 +01:00
Fenny
3c8f582cad More cleaning 2020-03-24 05:31:51 +01:00
Fenny
9f4b3b8384 Faster JSON serialization 2020-03-24 03:36:52 +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