xref: /unit/test/ruby/input_each/config.ru (revision 585:17703effc76a)
1*585Szelenkov@nginx.comapp = Proc.new do |env|
2*585Szelenkov@nginx.com    body = ''
3*585Szelenkov@nginx.com    env['rack.input'].each do |value|
4*585Szelenkov@nginx.com        body += value
5*585Szelenkov@nginx.com    end
6*585Szelenkov@nginx.com    ['200', {
7*585Szelenkov@nginx.com        'Content-Length' => body.length.to_s
8*585Szelenkov@nginx.com    }, [body]]
9*585Szelenkov@nginx.comend
10*585Szelenkov@nginx.com
11*585Szelenkov@nginx.comrun app
12