1 2 3 4 5 6
app = Proc.new do |env| body = env['rack.input'].read ['200', {'Content-Length' => body.length.to_s}, [body]] end run app