about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 17:39:11 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-06 14:14:30 -0800
commit2cb26ba8084cd37996330616b885de1c780d848e (patch)
tree6e829d0c1d4c49e666e97dacdfcc16e8eea0482d /lib/rainbows/ev_core.rb
parent31a93152c8977f31045bd182ae99df4ebd088abf (diff)
downloadrainbows-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.rb5
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