diff options
Diffstat (limited to 'integration-tests/req-return.rb')
-rw-r--r-- | integration-tests/req-return.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/integration-tests/req-return.rb b/integration-tests/req-return.rb new file mode 100644 index 0000000..51d315e --- /dev/null +++ b/integration-tests/req-return.rb @@ -0,0 +1,12 @@ +class App + def on_req(env) + resp = env.resp + + resp.clear_headers + resp.status = 404 + resp.add_header "from", "mruby" + resp.return "Hello World from req" + end +end + +App.new |