summary refs log tree commit homepage
path: root/t/t9000.ru
blob: 66643b6919f8fb02b54e8ffe4128eb4960910dc2 (plain)
1
2
3
4
5
6
7
8
9
10
use Rack::ContentLength
use Rack::ContentType
use Rainbows::AppPool, :size => ENV['APP_POOL_SIZE'].to_i
class Sleeper
  def call(env)
    Rainbows.sleep(1)
    [ 200, {}, [ "#{object_id}\n" ] ]
  end
end
run Sleeper.new