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