nghttp2/integration-tests/return.rb

9 lines
147 B
Ruby
Raw Normal View History

2015-09-04 18:24:43 +02:00
Nghttpx.run do |env|
resp = env.resp
2015-09-03 19:52:19 +02:00
resp.clear_headers
resp.status = 404
resp.add_header "from", "mruby"
resp.return "Hello World"
end