xref: /unit/test/ruby/at_exit/config.ru (revision 585:17703effc76a)
1*585Szelenkov@nginx.comapp = Proc.new do |env|
2*585Szelenkov@nginx.com    at_exit do
3*585Szelenkov@nginx.com      env['rack.errors'].puts('At exit called.')
4*585Szelenkov@nginx.com    end
5*585Szelenkov@nginx.com    ['200', {'Content-Length' => '0'}, ['']]
6*585Szelenkov@nginx.comend
7*585Szelenkov@nginx.com
8*585Szelenkov@nginx.comrun app
9