diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-05 17:39:11 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-06 14:14:30 -0800 |
commit | 2cb26ba8084cd37996330616b885de1c780d848e (patch) | |
tree | 6e829d0c1d4c49e666e97dacdfcc16e8eea0482d /lib/rainbows/ev_core.rb | |
parent | 31a93152c8977f31045bd182ae99df4ebd088abf (diff) | |
download | rainbows-2cb26ba8084cd37996330616b885de1c780d848e.tar.gz |
This will allow Coolio to use it, too.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index a8bedce..013df39 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -11,6 +11,11 @@ module Rainbows::EvCore # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ] ASYNC_CALLBACK = "async.callback".freeze + def write_async_response(response) + status, headers, body = response + write_response(status, headers, body, false) + end + ASYNC_CLOSE = "async.close".freeze def post_init |