go-chi / go-chi/httprate

Rate limit only on failed requests.

Open
#24 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
476
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Is there an easy way to use the existing httprate functionality but push it to the end resolution of the request/response chain instead of at the beginning.

We want to create a couple of open ended mutation endpoints that could be used maliciously so we want to limit the total number of bad requests in a short period of time, but not limit penalize a user who is submitted good data that returns 2XX responses.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.