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
tuhao1020
a109dc6c68
Schema parser: use full match instead of strings.HasPrefix ( #1424 )
...
* #1414 use full match instead of strings.HasPrefix
* update for nested or recursive structs
* replace strings.Contains with strings.IndexByte
2021-07-11 11:45:15 +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
alfuhigi
43876dad8f
🧹 remove duplicate in test ( #1404 )
2021-06-24 12:29:48 +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
ReneWerner87
42755c30e6
⚡ Accelerate start process for many routes #1081
2021-01-24 13:02:21 +01:00
ReneWerner87
d4bbd08bbb
🐛 UnescapePath not working #1102
...
change arabic test string to test
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:52:34 +01:00
ReneWerner87
4f5e57d8de
🐛 UnescapePath not working #1102
...
Co-authored-by: Fenny <fenny@gofiber.io>
2021-01-06 13:46:50 +01:00
Fenny
8bd50de610
🧹 housekeeping
2020-11-11 13:54:27 +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
kiyon
d0e828dbf5
🍀 Improve test coverage
2020-10-24 16:24:48 +08:00
yonbiaoxiao
d622469203
improve base uri for ctx
2020-10-19 14:01:34 +08:00
kiyon
f70acc5bae
🩹 Improve test case for Ctx.SendFile to cover #908 as #911 mentioned
2020-10-11 08:28:41 +08:00
David Mazary
618b753230
🚨 Fix gosimple lint warnings
2020-10-03 13:20:54 -04:00
kiyon
ea79c4ef45
👷 add ctx test case to improve coverage
2020-10-04 00:25:46 +08: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
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
a3cac71ae8
🔦 move utils to internal
2020-09-14 09:09:06 +02:00
Fenny
ec5d66e7a8
⚡ v2
2020-09-13 11:20:11 +02:00
ReneWerner87
67caca823b
🚀 improve routing behavior
2020-08-10 09:50:53 +02:00
ReneWerner87
d9c09fa68e
🚀 improve routing behavior
2020-08-09 19:50:10 +02:00
kiyon
7863cd1458
👷 add ctx.Render test cases
2020-07-29 11:07:47 +08:00
kiyon
5ee5418b36
👷 add ctx.SendFile test cases
2020-07-29 10:03:47 +08: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
affd3469ba
🧹 Add benchmark for Fresh with stale etag
2020-07-26 18:55:47 -07:00
Larry Lv
49d6d04daf
Add Fresh with no-cache benchmark
2020-07-25 22:36:38 -07:00
Larry Lv
fd75ef0fbe
🚀 Don't use regexp for no-cache value check
2020-07-25 22:35:43 -07:00
fenny
415a6026c1
Merge pull request #671 from kiyonlin/fix-ctx-ips
...
🩹 when X-Forwarded-For is empty, ctx.Ips() should be empty
2020-07-24 17:28:26 +02:00
kiyon
cf22aa2ae5
🩹 handle invalid http method
2020-07-24 22:55:57 +08: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
e3a5ba067b
🗑️ Remove deprecated tests
...
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: kiyon <kiyonlin@users.noreply.github.com>
2020-07-22 02:07:06 +02:00
ReneWerner87
88b4da6a03
⚡ Improve ctx.Is performance
2020-07-21 21:09:51 +02:00
kiyon
761532a3a5
📗 improve ctx.Render test
2020-07-18 08:44:32 +08:00
kiyon
30a704b5f9
👷 improve test coverage
2020-07-16 16:42:36 +08:00
fenny
a2f2e76c3d
Merge pull request #619 from Fenny/master
...
🧫 Add TLS tests
2020-07-15 13:10:14 -04:00
Fenny
ca1bd29359
🧪 Add TLS Tests
2020-07-15 18:50:28 +02:00
Fenny
ca18303938
🧪 Increase test coverage: 96.4%
2020-07-15 18:01:05 +02:00
fenny
9544f1d8cc
Merge pull request #615 from kiyonlin/remove-invalid-benchmark
...
🚽 remove invalid benchmark
2020-07-15 09:53:59 -04:00
kiyon
ef7995fe74
🚽 remove invalid benchmark
2020-07-15 21:45:21 +08:00
Fenny
ad2052cf8f
🚀 Improve Send
2020-07-15 15:26:05 +02:00
Fenny
7fc4b37dfb
🩹 Fix prefork test
2020-07-15 15:10:59 +02:00