Closed yaronius closed 3 years ago
Hi @pkieltyka! Do you have any feedback on this?
Any feedback, please?
hi @yaronius -- the main addition via this PR is to add a "OnLimitFunc" handler which allows you to change a response body for rate-limited requests. This makes sense to me actually and a nice addition.
Hi @pkieltyka Thank you for the feedback, I'll update the PR and re-request your review then
I updated the PR with breaking backwards compatibility but using the options pattern which should make further improvements much easier.
beautifully done! do you mind also updating the README to update the example in there, and ensure _example/ is updated + runs as well?
I will merge after that
I updated the README and examples, checked that the example code works like a charm
This closes https://github.com/go-chi/httprate/issues/4