Gusted
7b7dcf29f7
♻️ Tidy up the codebase ( #1613 )
...
* run gofmt
* add t.Helper()
* Simplify assigns
* Simplify make operation
* Remove unused field in struct
* Fix typo
* Run gofumpt ./
* Consistent spacing
* len(...) can never be negative
* Use ReplaceAll
* Simplify operation
* Remove deadcode
* Fix typo
* Tidy up `} else { if ...`
* Fix AssertEqual
* Remove t.Helper() to fix go1.14.15
2021-11-05 08:00:03 +01:00
M. Efe Çetin
9eaa8b0c73
Change default json lib. ( #1563 )
...
* Change default json lib.
* Remove gopsutil test.
* Fix tests.
* Ignore linter for UnmarshalFieldError.
* update
2021-10-11 08:28:06 +02:00
Rock
a9b66b328e
♻️ Option to overide form decoder setting - Rename function ( #1555 )
...
* 🔥 add function to overide form decoder setting
🔥 Feature : SetBodyParserDecoder map all option to form decoder, use with BodyParserConfig, BodyParserType
🚨 Test : Test_Ctx_BodyParser_WithSetBodyParserDecoder
* 🔥 Use decoder builder function with default setting on init decoderPool
* ♻️ rename SetBodyParserDecoder to SetParserDecoder
BodyParserType > ParserType
bodyParserConfig > parserConfig
BodyParserConfig > ParserConfig
2021-10-04 08:37:24 +02:00
Rock
35e38db771
🔥 Add function to override form decoder setting ( #1100 )
...
* 🔥 add function to overide form decoder setting
🔥 Feature : SetBodyParserDecoder map all option to form decoder, use with BodyParserConfig, BodyParserType
🚨 Test : Test_Ctx_BodyParser_WithSetBodyParserDecoder
* 🔥 Use decoder builder function with default setting on init decoderPool
2021-10-01 08:32:06 +02:00
Iván Valdés
26c29e248f
Restore original URL after sending file ( #1553 )
2021-10-01 08:30:47 +02:00
Thammachart Chinvarapon
842b63022d
🐛 Fix Mutability issue of UserContext in fiber.Ctx ( #1522 )
...
* existing tests clean up
* concurrent test for UserContext Reused
* comment on Ctx.userContext field
* userContext tests edited & fixed, userContext field removed, constant of userContextKey defined
2021-09-09 08:11:26 +02:00
Shirshendu Bhowmick
d89207831d
🐛 Fix: ctx.BodyParser was not able to parse vendor specific content type ( #1506 )
2021-08-22 17:53:14 +02:00
Pranay
670170f7c5
📝 Update: Add JSONDecoder to config ( #1489 )
...
* 📝 Update: Add JSONDecoder to config
2021-08-18 14:26:07 +02:00
goldwind-ting
846d5a5b38
[Logger]: add tag for response header ( #1446 )
...
* add TagRespHeader to get response header
* #1422:add unittest
* #1422:adjust docs for logger middleware
* #1422:adjust docs for logger middleware
2021-08-04 08:19:41 +02:00
faceair
1e0d4d3b1c
🐛 fix parse gzipped body ( #1458 )
2021-07-30 08:02:02 +02:00
Vahagn Mkrtchyan
f0ab2a5433
Add option to specify default values for ParamsInt ( #1453 )
2021-07-26 19:50:56 +02:00
Marcos de Oliveira
30ba99425f
Add ${port} logger variable ( #1448 )
...
* Add c.Addr() and c.Port() functions and logger port variable
* Add gofmt suggestion, README.md description and test
* Remove c.Addr() func and use c.fasthttp.RemoteAddr() instead
2021-07-22 17:42:29 +02:00
wja513
dd45be693a
cookie: add possibility to disable same site attribute ( #1428 )
...
* fix some old browsers cann't set the cookie if it contains SameSite property.
* add "SameSite" attribute constants and test case.
Co-authored-by: wangjiangao <wangjiangao@360.cn>
2021-07-16 20:08:17 +02:00
Oleg Roshnivskyy
5ba78cd24a
🔥 Feature: Add TrustedProxies feature ( #1397 )
...
* 🔥 Feature: Add TrustedProxies feature
Add TrustedProxies feature to prevent HTTP header spoofing.
* Update ctx.go
* Update app.go
* Update app.go
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
2021-06-30 08:03:45 +02:00
Andreas
2703e92c5d
✨ Added decompression cases for Body function ( #1402 )
...
* Added decompression cases for Body function
* Fixed signature of Body() function
* Removed regex, added Header.Peek
* Added test case with compression
* Added Benchmark, moved compression names to helpers and made them constants
* Added long brotli as a constant
* Update ctx.go
improve Body function
* Update ctx.go
improve performance
* Fixed formatting
* Update helpers.go
Co-authored-by: RW <rene@gofiber.io>
2021-06-24 07:47:21 +02:00
Sujit Baniya
cb5f2f7eab
🔥 Add Global ViewLayout ( #1384 )
...
* Add Global Layout for view render
* Add test case for Views Layout
* Update ctx_test.go
2021-06-14 11:10:49 +02:00
Kshitij Patil
8616b41517
🔥 Adding user context ( #1341 )
...
* Adding user context
* adding docblock
* correcting comments
* minor change in comment
* Update ctx.go
Co-authored-by: RW <rene@gofiber.io>
2021-05-24 00:46:52 -04:00
SianLoong
da1877f16c
🏗️ chore: enable decoder's ZeroEmpty by default ( #1285 )
2021-05-17 15:46:36 +02:00
Diego Sandrim
0dc67e80d2
Moves .getBytes and .getString from package variable to App instance variable, avoiding data race when creating a new App.
2021-05-05 17:24:26 -03:00
Eduardo Andrés Castillo Perera
47f44f3960
✨ Add method to get an integer directly from the Ctx params (route params) ( #1243 )
...
* Created ParamsInt method in Ctx
* Created test for the ParamsInt method
* Recover accidentally removed comments
2021-03-28 15:49:51 +02:00
SianLoong
861e5d21fb
🐛 Fix unexpected result when `QueryParser` parse slice data type ( #1238 )
2021-03-24 20:12:57 +01:00
Yoofi Quansah
5941c8c4e2
🧹 chore: address comments, and use more standard definition for
...
functionality we define
2021-01-25 13:48:07 -06:00
Yoofi Quansah
2267f0f76f
🚀 feat: add custom definition for a json executor
2021-01-19 20:25:44 -08:00
ReneWerner87
c893e3243b
🐛 UnescapePath not working #1102
...
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 19:06:13 +01:00
ReneWerner87
4f5e57d8de
🐛 UnescapePath not working #1102
...
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:46:50 +01:00
ReneWerner87
e94e653ca7
🐛 UnescapePath not working #1102
...
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:24:26 +01:00
ReneWerner87
b51def0bb8
🐛 UnescapePath not working #1102
...
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:21:54 +01:00
Fenny
3242e5b151
🚀 allow incase-sensitive ctypes in bodyparser
...
Co-Authored-By: Mones Zarrugh <11161902+moneszarrugh@users.noreply.github.com>
2020-12-11 00:59:32 +01:00
Fenny
a1879ceca8
🚧 refactor bodyparser
...
Co-Authored-By: Mones Zarrugh <11161902+moneszarrugh@users.noreply.github.com>
#1067
2020-12-11 00:56:54 +01:00
Fenny
1468a049c4
✏ removeNewLines is present in fh 1.18
...
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
Co-Authored-By: kiyon <kiyon@gofiber.io>
2020-12-11 00:49:57 +01:00
Kiyon
d6d831e2b1
👷 fix lint
2020-11-30 13:49:13 +08:00
Fenny
c9bbc9fc54
📚 update JSON description
...
Co-Authored-By: nickland03 <52105217+nickland03@users.noreply.github.com>
2020-11-01 10:46:19 +01:00
ckcks12
e0122f261c
🐛 queryparser: query args count based condition removed
2020-10-26 14:48:21 +09:00
ReneWerner87
d8961a7ed9
🐛 Fix (*Ctx).Accepts
...
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: navossoc <navossoc@gmail.com>
2020-10-24 20:06:13 +02:00
yonbiaoxiao
d622469203
improve base uri for ctx
2020-10-19 14:01:34 +08:00
Fenny
c0efbcd28c
Merge pull request #908 from hi019/master
...
🐛 Make SendFile return 404 if file not found
2020-10-10 16:26:21 +02:00
hi019
2c8df2e337
🎨 Use NewError in SendFile
2020-10-09 23:11:44 -04:00
hi019
b73e883241
🐛 Make SendFile return 404 if file not found
2020-10-09 21:42:25 -04:00
David Mazary
618b753230
🚨 Fix gosimple lint warnings
2020-10-03 13:20:54 -04:00
Fenny
e5e9cf9201
🍪 add max-age to cookie
2020-09-30 15:31:46 +02:00
Fenny
d6f717148a
🛠 correct convert naming
2020-09-27 12:22:17 +02:00
Fenny
3fbc1470c6
🏀 Support splitting in QueryParser
...
Co-Authored-By: Nathaniel Peiffer <nathaniel@peiffer.com.au>
2020-09-20 12:15:53 +02:00
Fenny
cb7f084615
Merge pull request #812 from ReneWerner87/improveErrorHandling
...
☠️ Improve error handling flow
2020-09-19 09:19:31 +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
Fenny
4163d4473a
📦 introduce WriteString
2020-09-18 11:52:06 +02: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
a09daabfee
⚡ move utils to internal
2020-09-14 09:24:48 +02:00
Fenny
a3cac71ae8
🔦 move utils to internal
2020-09-14 09:09:06 +02:00
Fenny
3d76f078a4
⚡ v2
2020-09-14 04:54:26 +02:00
Fenny
2951c6ac0d
⚡ v2
2020-09-13 11:39:55 +02:00
Fenny
ec5d66e7a8
⚡ v2
2020-09-13 11:20:11 +02:00
ReneWerner87
df3c48a734
🌵 hybrid routing with tree and fast router
2020-08-10 10:51:38 +02:00
ReneWerner87
e802c41f41
Merge branch 'hybrid_routing' into improve_route_behavior
2020-08-10 10:14:31 +02:00
ReneWerner87
945b61d1c3
🌵 hybrid routing with tree and fast router
2020-08-09 21:53:15 +02:00
ReneWerner87
d9c09fa68e
🚀 improve routing behavior
2020-08-09 19:50:10 +02:00
Fenny
797fe3a8e5
⚡ Set cType directly in Render
2020-07-31 14:01:37 +02:00
kiyon
7863cd1458
👷 add ctx.Render test cases
2020-07-29 11:07:47 +08:00
Fenny
87127f571a
🧹 Remove deprecated Templates
2020-07-28 04:36:56 +02:00
fenny
d06256c944
Merge pull request #675 from larrylv/larrylv/improve_no_cache_header_matching
...
🚀 Don't use regexp for no-cache value check
2020-07-27 04:43:19 +02:00
Larry Lv
fc85699a95
🧹 Refactor etag stale checking
2020-07-26 18:53:26 -07:00
Larry Lv
fd75ef0fbe
🚀 Don't use regexp for no-cache value check
2020-07-25 22:35:43 -07:00
kiyon
4ebd887faa
🩹 when X-Forwarded-For is empty, ctx.Ips() should not return any(even empty) ip
2020-07-24 21:53:08 +08:00
Fenny
cd3e37fc91
🧹 Improve BodyParser
...
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: kiyon <kiyonlin@users.noreply.github.com>
2020-07-21 22:50:12 +02:00
fenny
6616950649
Merge pull request #657 from ReneWerner87/improve_ctxIs
...
⚡ Improve ctx.Is performance
2020-07-21 22:24:02 +02:00
ReneWerner87
aafa784bbb
⚡ Improve ctx.Is performance
2020-07-21 21:28:13 +02:00
Fenny
2f87bf9005
🍻 Update Query condition
...
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
2020-07-21 21:23:22 +02:00
ReneWerner87
88b4da6a03
⚡ Improve ctx.Is performance
2020-07-21 21:09:51 +02:00
Fenny
9dc4d9faeb
✏ Fix deprecation message
2020-07-21 20:46:42 +02:00
Fenny
ae959fae5a
🧉 Allow missing space in Content-Type's using BodyParser
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-07-21 19:43:32 +02:00
Hemanth Krishna
f695e21b1e
✏️ Fix typo for app and ctx warnings
2020-07-18 20:19:42 +05:30
fenny
c84ae11e26
Merge pull request #630 from kiyonlin/fix-625
...
👷 fixed ctx.Render bug
2020-07-17 19:27:42 +02:00
kiyon
762b00f7d0
👷 fixed #625
2020-07-17 10:05:01 +08:00
kiyon
c89bfb3634
🔔 fix ctx matched bug, it should be reset to false when acquired
2020-07-17 09:34:27 +08:00
ReneWerner87
9ec400b5d5
🚀 improve ctx.Render performance -> reduce allocation (if app is started as non-immutable)
2020-07-16 11:12:50 +02:00
ReneWerner87
89f929fcb0
🚀 improve ctx.Links performance -> reduce allocation (if app is started as non-immutable)
2020-07-16 11:02:36 +02:00
kiyon
df19f6d933
👷 fix data race in sendFile test
2020-07-16 09:00:20 +08:00
fenny
a2f2e76c3d
Merge pull request #619 from Fenny/master
...
🧫 Add TLS tests
2020-07-15 13:10:14 -04:00
Fenny
ca18303938
🧪 Increase test coverage: 96.4%
2020-07-15 18:01:05 +02:00
fenny
c5efb6d6c6
Merge pull request #616 from kiyonlin/improve-body-parser-performance
...
🚀 improve ctx.BodyParser performance
2020-07-15 10:33:07 -04:00
kiyon
495d1b7cbf
🚀 improve ctx.BodyParser performance
2020-07-15 22:00:56 +08:00
Fenny
ad2052cf8f
🚀 Improve Send
2020-07-15 15:26:05 +02:00
fenny
b11568bbef
Merge pull request #610 from kiyonlin/improve-query-parser-performance
...
🚀 improve ctx.QueryParser performance
2020-07-15 08:18:41 -04:00
fenny
4e810030e4
Merge pull request #611 from kiyonlin/improve-ctx-coverage
...
💯 improve ctx test coverage
2020-07-15 08:18:17 -04:00
kiyon
f95ca9a9ff
🚀 improve ctx.Ips performance
2020-07-15 15:59:10 +08:00
kiyon
558917f147
💯 cover error statement
2020-07-15 14:22:31 +08:00
kiyon
e5204f4738
🚀 improve ctx.QueryParser performance
2020-07-15 12:57:56 +08:00
fenny
8605857678
🚀 refactor: improve logic method BodyParser
...
🚀 refactor: improve logic method BodyParser
2020-07-14 22:55:20 -04:00
renanbastos93
d61e478578
🚀 refactor: improve logic method BodyParser
2020-07-14 12:18:44 -03:00
fenny
155e6a0673
Merge pull request #606 from ReneWerner87/fix_append_bug
...
🐞 prevent duplicates in ctx.Append for similar wording of the value
2020-07-14 08:02:12 -04:00
ReneWerner87
4035b17ee0
🐞 prevent duplicates in ctx.Append for similar wording of the value
2020-07-14 12:23:11 +02:00
kiyon
3156fcca3d
🍤 improve ctx test coverage
2020-07-14 15:24:24 +08:00
Fenny
bb5ad54658
⚠ Add deprecation message
2020-07-13 15:45:34 +02:00
Fenny
b9deefbba1
Merge remote-tracking branch 'upstream/master'
2020-07-13 15:37:49 +02:00
Fenny
0361df3cab
🧹 Update description
2020-07-13 15:37:38 +02:00
fenny
96d5286e9d
Merge pull request #597 from kiyonlin/invalid-method
...
💫 short the invalid method check
2020-07-13 05:43:36 -04:00
kiyon
eb0bc94393
💫 short the invalid method check
2020-07-13 16:47:15 +08:00
kiyon
9d9cfa8424
🚨 extract func quoteString() for ctx.Attachment and ctx.Download
2020-07-13 12:37:50 +08:00
fenny
681b1bc685
Merge pull request #593 from kinbiko/docs-improvements
...
📚 Docs improvements
2020-07-12 16:10:19 -04:00
kiyon
de7a0357a6
🚀 Better performance for ctx.Attachment
2020-07-13 00:38:01 +08:00
Roger Guldbrandsen
c6ff695762
📚 Clean up ctx.go docs
...
- Use full sentences for context pool management methods.
- Full stop after each sentence (wherever I am confident of the intended meaning).
- Grammar fixes.
- Use single quote (') over fancy formatted apostrophe (’).
- Remove useless and incorrect comment on global variable
2020-07-13 01:35:17 +09:00
renanbastos93
4470d77295
📦 feat: method QueryParser in context
2020-07-11 14:38:21 -03:00
fenny
89493f5565
Merge pull request #584 from ReneWerner87/improveAttachment
...
🚀 Better performance for ctx.Attachment
2020-07-11 11:55:30 -04:00
RW
1844cfd9f7
Merge branch 'master' into improve-json
2020-07-11 17:13:52 +02:00
ReneWerner87
9a238fbde8
🚀 Better performance for ctx.Attachment
2020-07-11 17:00:01 +02:00
Fenny
11b4ae3d5a
🚀 Improve JSON Response
...
Co-Authored-By: kiyon <kiyonlin@163.com>
2020-07-11 12:58:51 +02:00
Fenny
c12a0372cf
🚀 Improve JSON response
2020-07-11 12:57:28 +02:00
kiyon
5175222c03
🚀 remove `&` to improve ctx.JSON( 😭 )
2020-07-11 16:35:52 +08:00
kiyon
a6e51e8a2b
🏁 remove extra '\n' added by encoder.Encode
2020-07-11 15:41:44 +08:00
kiyon
f49f1cbbc1
🚀 improve ctx.JSON
2020-07-11 10:06:35 +08:00
Fenny
f698b5d506
🐛 Escape fname
2020-07-10 22:25:10 +02:00
kiyon
e3b8bf578d
💡 add additional description about sendByte
2020-07-09 19:15:07 +08:00
kiyon
367dd7d33f
🚀 improve ctx.SendBytes performance
2020-07-09 13:20:31 +08:00
kiyon
7f5d7ec9bc
🚀 improve ctx.Send performance
2020-07-09 13:20:24 +08: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
d15d20ac0c
🔧 Don't reset headers on ErrorHandler
2020-07-08 21:04:03 +02:00
kiyon
9b14fc78d1
💡 add ctx.matched to determine if request matched a non USE route.
2020-07-08 22:40:44 +08:00
Fenny
964f3c59ae
🔨 Make Params available in Route
2020-07-05 11:17:42 +02:00
Ryan Swanson
104f4fcddf
add ParamList to ctx
2020-07-04 13:47:54 -06:00
Fenny
29c47030fe
Add default value support
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-07-04 10:29:13 +02:00
Fenny
5250a33879
Add defaultvalue
2020-07-04 10:11:23 +02:00
Fenny
418a7767a2
Update ctx.go
...
Co-Authored-By: kiyon <kiyonlin@163.com>
2020-07-04 09:11:47 +02:00
Fenny
db4caba968
Micro optimization
...
Co-Authored-By: kiyon <kiyonlin@163.com>
2020-07-04 08:55:13 +02:00
Fenny
cdf45da5b1
Update ctx.go
2020-07-03 19:35:40 +02:00
Fenny
592545ac46
Allow default values
2020-07-03 19:30:34 +02:00
Fenny
2ebadb4c38
Update ctx.go
...
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-07-03 14:02:00 +02:00
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
Fenny
27a7b21716
Replace two-value range loops ( #324 )
...
* Replace two value range loops
2020-04-29 04:55:34 +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
bestgopher
86a9b05d09
Update c.Fresh( #311 ) ( #317 )
...
* update: ctx.BodyParser
* add #311
* Update utils.go
2020-04-28 19:44:22 +02:00
bestgopher
1cf0d257c0
update: ctx.BodyParser ( #316 )
...
* update: ctx.BodyParser
* Update ctx.go
fmt file
2020-04-28 14:18:02 +02:00
bestgopher
260f3b3410
use getString in Range( #312 )
...
* Transform string in Range without allocation
2020-04-27 06:28:53 +02:00
bestgopher
101e1cce98
Modify ctx.Send ( #310 )
...
* fix typo
* move ctx.Write method in ctx.Send
2020-04-26 13:53:13 +02:00
da-z
ccf7989e4f
Fixes typo
2020-04-24 19:00:37 +02:00
Fenny
afeb3025d7
v1.9.2
2020-04-24 02:15:24 +02:00
Fenny
6e2dbc50f7
Update ctx.go
2020-04-24 00:45:02 +02:00
Fenny
4242901c92
v1.9.2
2020-04-23 00:33:36 +02:00
Fenny
1927d6bc40
Test
2020-04-20 22:43:40 +02:00
Fenny
8aa42fb2b1
Update ctx.go
2020-04-20 22:42:59 +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
48dd9846c6
Issue #250
...
Disable common errors
Fix issue #250
2020-03-29 14:13:02 +02:00
Fenny
6a42bc6450
v1.8.43
2020-03-27 06:56:58 +01:00
Fenny
8ad8d6eb23
Hi Ctx
2020-03-24 05:59:56 +01:00