go-chi / httprate

net/http rate limiter middleware
MIT License
270 stars 18 forks source link

Custom limit handling #4

Closed yaronius closed 3 years ago

yaronius commented 3 years ago

So far this middleware doesn't allow for custom limit handling like changing the response body and code, additional logging etc. Some other tools like https://github.com/didip/tollbooth have this feature. I think it would be nice to add it here. I can come up with a PR if the idea doesn't sound bad.

P.S. And thanks for the great work on Chi!

yaronius commented 3 years ago

Hi @pkieltyka, could you review this, please?