nghttp2/integration-tests/return.rb

9 lines
147 B
Ruby

Nghttpx.run do |env|
resp = env.resp
resp.clear_headers
resp.status = 404
resp.add_header "from", "mruby"
resp.return "Hello World"
end