mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
27 lines
292 B
Ruby
27 lines
292 B
Ruby
require 'rack'
|
|
module Rack
|
|
class Attack
|
|
class << self
|
|
|
|
def block
|
|
end
|
|
|
|
def throttle
|
|
end
|
|
|
|
def whitelist
|
|
end
|
|
|
|
end
|
|
|
|
def initialize(app)
|
|
@app = app
|
|
end
|
|
|
|
def call(env)
|
|
puts 'Rack attack!'
|
|
@app.call(env)
|
|
end
|
|
|
|
end
|
|
end
|