rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 71269fa75b2ee57468ff69652a3f981faf2f5f9e 271 bytes (raw)
$ git show v0.90.0:t/simple-http_EventMachineDefer.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  if env['rack.multithread'] == true &&
     EM.reactor_running? &&
     env['rainbows.model'] == :EventMachineDefer
    [ 200, {}, [ env.inspect << "\n" ] ]
  else
    raise "incorrect parameters"
  end
}

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