13 lines
190 B
Ruby
13 lines
190 B
Ruby
|
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
|