File: write_to_stdout.ru

package info (click to toggle)
puma 6.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,884 kB
  • sloc: ruby: 17,542; ansic: 2,003; java: 1,006; sh: 379; makefile: 10
file content (6 lines) | stat: -rw-r--r-- 120 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
app = lambda do |env|
  $stdout.write "hello\n"
  [200, {"Content-Type" => "text/plain"}, ["Hello World"]]
end

run app