From ed1d5f187de90105b1d01d3d8711eba14115ccf0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Dec 2009 15:01:28 -0800 Subject: move "async.callback" constant to EvCore Rev/Packet-based models may support it in the future --- lib/rainbows/ev_core.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/rainbows/ev_core.rb') diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index f61b33f..2a064dd 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -8,6 +8,9 @@ module Rainbows include Rainbows::Const G = Rainbows::G + # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ] + ASYNC_CALLBACK = "async.callback".freeze + def self.setup(klass) klass.const_set(:APP, G.server.app) end -- cgit v1.2.3-24-ge0c7