unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 1ae8ea7b405ebe3f4dce950a40b23dccb5db7144 294 bytes (raw)
$ git show no-kgio-wip:t/t0301.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
#\-N --debug
run(lambda do |env|
  case env['PATH_INFO']
  when '/vars'
    b = "debug=#{$DEBUG.inspect}\n" \
        "lint=#{caller.grep(%r{rack/lint\.rb})[0].split(':')[0]}\n"
  end
  h = {
    'Content-Length' => b.size.to_s,
    'Content-Type' => 'text/plain',
  }
  [ 200, h, [ b ] ]
end)

git clone https://yhbt.net/unicorn.git