summaryrefslogtreecommitdiffstats
path: root/integration-tests/resp-return.rb
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/resp-return.rb')
-rw-r--r--integration-tests/resp-return.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/integration-tests/resp-return.rb b/integration-tests/resp-return.rb
new file mode 100644
index 0000000..fbbd775
--- /dev/null
+++ b/integration-tests/resp-return.rb
@@ -0,0 +1,12 @@
+class App
+ def on_resp(env)
+ resp = env.resp
+
+ resp.clear_headers
+ resp.status = 404
+ resp.add_header "from", "mruby"
+ resp.return "Hello World from resp"
+ end
+end
+
+App.new