Skip to content

RateLimit: Support for adding custom http response headers #3555

@surki

Description

@surki

Title: Support for adding custom http response headers from ratelimit filter/service

Description:
We would like add custom http response headers for both allowed and rate-limited requests.
For example:
For a successful non-ratelimited request

x-rate-limit-limit: 100  
x-rate-limit-remaining: 10

For a rate-limited request
x-rate-limit-retry-after: 50

[optional Relevant Links:]
Something similar to: https://developer.twitter.com/en/docs/basics/rate-limiting

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests. Not bugs or questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions