rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob da17d5d22eb89b3c932e220badd342e8fe315cc0 241 bytes (raw)
$ git show HEAD:t/simple-http_ActorSpawn.ru	# shows this blob on the CLI

1
2
3
4
5
6
7
8
9
 
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  if env['rack.multithread'] && env['rainbows.model'] == :ActorSpawn
    [ 200, {}, [ Actor.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is not true"
  end
}

git clone https://yhbt.net/rainbows.git