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"]
Namespace
Methods
D
N
P
U
Included Modules
Class Public methods
new(env)
# File lib/rack/request.rb, line 14
def initialize(env)
  @params = nil
  super(env)
end
Instance Public methods
delete_param(k)
# File lib/rack/request.rb, line 28
def delete_param(k)
  v = super
  @params = nil
  v
end
params()
# File lib/rack/request.rb, line 19
def params
  @params ||= super
end
update_param(k, v)
# File lib/rack/request.rb, line 23
def update_param(k, v)
  super
  @params = nil
end