Skip to content

🚀 [Feature]: Expose Ctx.values #2118

@pjebs

Description

@pjebs

Feature Description

It would be good to expose values in Context.

I need to intercept the request and modify the parameter values in a middleware.
The end route handler uses c.Params(key). This method uses values and c.route.Params.

I can already modify c.route.Params but I'm stuck due to values.

https://github.com/gofiber/fiber/blob/v2.37.1/ctx.go#L65

Additional Context (optional)

No response

Code Snippet (optional)

No response

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions