Skip to content

Rate limiting success handler #63932

@ocdi

Description

@ocdi

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I am wanting to implement rate limiting in my project and would like to be able to expose the rate limit information via headers, similar to how other actual APIs do it.

Describe the solution you'd like

Looking at the existing code, an API similar to the OnRejected but to be called when successful could enable this. These headers could actually be applied regardless of success or otherwise.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-rate-limitWork related to use of rate limit primitives

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions