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