summaryrefslogtreecommitdiffstats
path: root/integration-tests/req-return.rb
blob: 51d315efe35264a2a9635b97661781f51eaa59db (plain)
1
2
3
4
5
6
7
8
9
10
11
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