dryruby / rack-throttle

Rack middleware for rate-limiting incoming HTTP requests.
http://rubygems.org/gems/rack-throttle
The Unlicense
947 stars 115 forks source link

Custom responses? #16

Open ecnepsnai opened 9 years ago

ecnepsnai commented 9 years ago

Is it possible to change the response to be totally custom (JSON, for example) like it is in redis-throttle?

sethherr commented 9 years ago

:+1:

Do you want help writing the update? I would happily work on this.

ecnepsnai commented 9 years ago

I use a modified version to accomplish this. You can see the modifications I made here: https://github.com/ecnepsnai/rack-throttle/blob/master/lib/rack/throttle/limiter.rb

artob commented 9 years ago

I will review and merge any pending pull requests this weekend, if you guys want to submit one.