Jason McNeil
b3e84860d2
Revert " 🔥 feat: Add Context Support to RequestID Middleware" ( #3365 )
...
Revert "🔥 feat: Add Context Support to RequestID Middleware (#3200 )"
This reverts commit f725ded92bac13e773f92ff478e1a461c160abd3.
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2025-04-08 08:59:24 +02:00
JIeJaitt
f725ded92b
🔥 feat: Add Context Support to RequestID Middleware ( #3200 )
...
* Rename UserContext() to Context(). Rename Context() to RequestCtx()
* feat: add requestID in UserContext
* Update Ctxt docs and What's new
* Remove extra blank lines
* ♻️ Refactor: merge issue #3186
* 🔥 Feature: improve FromContext func and test
* 📚 Doc: improve requestid middleware
* ♻️ Refactor: Rename interface to any
* fix: Modify structure sorting to reduce memory usage
---------
Co-authored-by: Juan Calderon-Perez <jgcalderonperez@protonmail.com>
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-11-15 17:34:20 +01:00
Jason McNeil
2954e3bbae
♻️ v3: fix!: ContextKey collisions ( #2781 )
...
* fix: ContextKey collisions
* fix(logger): lint error
* docs(csrf): fix potential range error in example
2024-01-04 09:44:45 +01:00
Muhammed Efe Cetin
75bb02b87e
Merge remote-tracking branch 'origin/master' into v3-beta
2023-08-05 22:02:01 +03:00
Rorke76753
56839b433e
🚀 [Feature]: middleware/requestid: don't call "Generator" func on existing request ID header ( #2371 )
...
call uuid generator only if rid is empty
2023-03-15 09:45:42 +01:00
M. Efe Çetin
a458bd344c
✨ v3 (feature): convert fiber.Ctx type to interface ( #1928 )
...
* ✨ v3: convert fiber.Ctx type to interface
* update ctx methods
* add new methods to customize ctx, fix some problems
* update comments.
* fix something
2022-07-13 07:48:29 +02:00
Muhammed Efe Çetin
1188144d78
🎉 v3: init
2022-05-31 17:35:49 +03:00
Fenny
687717f113
🛠 separate config
2020-11-11 14:03:16 +01:00
LeoZhan
00750b8989
refactor: format the code
2020-11-01 00:32:01 +08:00
Tom
7eaf3c07b1
📦 Change requestId -> requestid
2020-10-22 10:00:06 +01:00
Tom
c5792a3953
📦 Add the request ID to locals
2020-10-21 20:14:12 +01:00
Konstantinos Lypitkas
9d4a83a55b
Minor refactor for clarity
2020-10-12 19:05:27 +03:00
kiyon
e13411e184
👷 improve mw test cases
...
add Next test case
2020-09-16 09:44:05 +08: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