about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
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