Sha256: ef01db4af963241d322e143f87bf4b4e2e3a10281317c8091ee0225c7d6d5546
Contents?: true
Size: 262 Bytes
Versions: 9
Compression:
Stored size: 262 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rack/throttle' require 'gdbm' use Rack::Throttle::Interval, :min => 3.0, :cache => GDBM.new('/tmp/throttle.db') run lambda { |env| [200, {'Content-Type' => 'text/plain'}, "Hello, world!\n"] }
Version data entries
9 entries across 9 versions & 3 rubygems