Class | Rack::Request |
In: |
lib/rack/request.rb
|
Parent: | Object |
Rack::Request provides a convenient interface to a Rack environment. It is stateless, the environment env passed to the constructor will be directly modified.
req = Rack::Request.new(env) req.post? req.params["data"]
env | [R] | The environment of the request. |
Returns the data recieved in the request body.
This method support both application/x-www-form-urlencoded and multipart/form-data.