Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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