summaryrefslogblamecommitdiffhomepage
path: root/test/ruby/input_gets/config.ru
blob: 1a6633ab1300347488bcdc7b2a3ee8249b3308f5 (plain) (tree)
1
2
3
4
5
6
7
8







                                            
app = Proc.new do |env|
    body = env['rack.input'].gets
    ['200', {
        'Content-Length' => body.length.to_s
    }, [body]]
end

run app