Skip to content

Conversation

@Dostonlv
Copy link

Implement connection-level user value management in RequestCtx

  • Added methods to set and retrieve connection-level user values, including support for uint64 values.
  • Implemented reset functionality to clear connection user values.
  • Introduced a new example demonstrating rate limiting using connection-level user values.

Implement connection-level user value management in RequestCtx

- Added methods to set and retrieve connection-level user values, including support for uint64 values.
- Implemented reset functionality to clear connection user values.
- Introduced a new example demonstrating rate limiting using connection-level user values.
@erikdubbelboer
Copy link
Collaborator

Sorry but I don't think expanding the API surface for this is a good idea. Unless you can show me some really good use case that can't be covered by using RequestCtx.ConnID() and a map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants