module

Defense

Class methods

blocklist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool)
Source
blocklisted_response=(block : HTTP::Server::Response -> Nil)
Source
reset
Source
safelist(name : String = UUID.random.to_s, &block : HTTP::Request -> Bool)
Source
store
Source
store=(store : Store)
Source
throttle(name : String, limit : Int32, period : Int32, &block : HTTP::Request -> String | Nil)
Source
throttled_response=(block : HTTP::Server::Response -> Nil)
Source

Nested types