mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
I need to filter requests on a period I need to get dynamically out of information I have in the requests. Currently, I can work out the limit, as it can be a `Proc`, however I can't do that with the period. This PR adds support for that. Tried to do it in a way that doesn't brake backwards compatibility, as periods are coerced to numbers during `Rack::Throttle` initialization. |
||
|---|---|---|
| .. | ||
| integration | ||
| allow2ban_spec.rb | ||
| fail2ban_spec.rb | ||
| rack_attack_dalli_proxy_spec.rb | ||
| rack_attack_request_spec.rb | ||
| rack_attack_spec.rb | ||
| rack_attack_throttle_spec.rb | ||
| rack_attack_track_spec.rb | ||
| spec_helper.rb | ||