# app.ru
app = lambda {|env|
request = Rack::Request.new(env)
p request.params
[200, {'Content-Type => 'text/html'}, "hello"]
}

run app



# shell
$ rackup app.ru