about summary refs log tree commit homepage
path: root/t/async-response.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/async-response.ru')
-rw-r--r--t/async-response.ru13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/async-response.ru b/t/async-response.ru
new file mode 100644
index 0000000..ef76504
--- /dev/null
+++ b/t/async-response.ru
@@ -0,0 +1,13 @@
+use Rack::Chunked
+use Rainbows::DevFdResponse
+run lambda { |env|
+  io = IO.popen('for i in 0 1 2 3 4 5 6 7 8 9; do date; sleep 1; done', 'rb')
+  io.sync = true
+  [
+    200,
+    {
+      'Content-Type' => 'text/plain',
+    },
+    io
+  ].freeze
+}