Skip to content

feat: support header prefix in limit-count rules#13004

Merged
Baoyuantop merged 7 commits into
apache:masterfrom
shreemaan-abhishek:hpfx
Feb 12, 2026
Merged

feat: support header prefix in limit-count rules#13004
Baoyuantop merged 7 commits into
apache:masterfrom
shreemaan-abhishek:hpfx

Conversation

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Description

We need a way to distinguish the rate limiting status with different headers when multiple rules are hit simultaneously. We can do this by allowing users to configure a header_prefix, the default value for this would be the index of the rule being executed.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Feb 11, 2026
f
Signed-off-by: Abhishek Choudhary <[email protected]>
Signed-off-by: Abhishek Choudhary <[email protected]>
nic-6443
nic-6443 previously approved these changes Feb 11, 2026
Comment thread docs/en/latest/plugins/limit-count.md Outdated
Signed-off-by: Abhishek Choudhary <[email protected]>
Signed-off-by: Abhishek Choudhary <[email protected]>
Signed-off-by: Abhishek Choudhary <[email protected]>
@Baoyuantop
Baoyuantop merged commit 3487fb6 into apache:master Feb 12, 2026
22 checks passed
wistefan pushed a commit to wistefan/apisix that referenced this pull request Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants