Juan Calderon-Perez
16f9056f5f
🐛 fix: Improve naming convention for Context returning functions ( #3193 )
...
* Rename UserContext() to Context(). Rename Context() to RequestCtx()
* Update Ctxt docs and What's new
* Remove extra blank lines
---------
Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
2024-11-13 16:12:19 +01:00
xEricL
579d9a3f3d
📚 Doc: Clarify SendFile Docs ( #3172 )
...
* 📚 Doc: Clarify SendFile ContentType header set by file format
* 📚 Doc: Make SendFile default value formatting consistent
* 📚 Doc: Add missing `fiber.` in SendFile usage docs
* 📚 Doc: Hyphenate 'case-sensitive'
* 📚 Doc: Clarify `SendFile` behavior for missing/invalid file extensions
* 🚨 Test: Validate `SendFile` Content-Type header
---------
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-10-28 08:11:24 +01:00
xEricL
298975a982
🔥 Feature: Add support for TrustProxy ( #3170 )
...
* 🔥 Feature: Add `TrustProxyConfig` and rename `EnableTrustedProxyCheck` to `TrustProxy`
* 📚 Doc: Document TrustProxyConfig usage and migration
* 🚨 Test: Validate and Benchmark use of TrustProxyConfig
* 🩹 Fix: typo in RequestMethods docstring
* 🩹 Fix: typos in TrustProxy docstring and JSON tags
* 🩹 Fix: Move `TrustProxyConfig.Loopback` to beginning of if-statement
* 🎨 Style: Cleanup spacing for Test_Ctx_IsProxyTrusted
* 📚 Doc: Replace `whitelist` with `allowlist` for clarity
* 📚 Doc: Improve `TrustProxy` doc wording
* 🩹 Fix: validate IP addresses in `App.handleTrustedProxy`
* 🩹 Fix: grammatical errors and capitalize "TLS"
2024-10-17 08:29:03 +02:00
Juan Calderon-Perez
f8c514cb25
v3: Optimize IsFromLocal() performance ( #3140 )
...
Optimize IsFromLocal()
2024-09-23 15:16:52 +02:00
M. Efe Çetin
08d9fda631
✨ enhancement: use msgp for flash message encoding/decoding ( #3099 )
...
* enhancement: use msgp for flash message encoding/decoding
* add msgp tests
* improve test coverage
* improve test coverage
* fix linter
* update makefile
* extend go generation process
---------
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
Co-authored-by: René <rene@gofiber.io>
2024-08-29 16:45:16 +02:00
M. Efe Çetin
21ede5954c
✨ v3 (feature): add configuration support to c.SendFile() ( #3017 )
...
* ✨ v3 (feature): add configuration support to c.SendFile()
* update
* cover more edge-cases
* optimize
* update compression, add mutex for sendfile slice
* fix data races
* add benchmark
* update docs
* update docs
* update
* update tests
* fix linter
* update
* update tests
---------
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-06-30 21:15:22 +02:00
Jason McNeil
011e83b390
docs: Improve ctx.Locals method description, godoc and example ( #3032 )
...
* docs: Improve ctx.Locals method description, godoc and example
* docs: Update ctx.md to use value receiver for fiber.Ctx in app.Use and app.Get
* chore: Update userKey type in ctx.md
* docs: Update ctx.md
* chore: Add description for Locals method in Ctx interface
2024-06-18 08:27:38 +02:00
RW
046b4a9d4e
Adding a generator to generate the CTX interface ( #3024 )
2024-06-03 08:37:22 +02:00