Rack::Request
The request object. See Rack::Request for more info: rack.rubyforge.org/doc/classes/Rack/Request.html
Returns an array of acceptable media types for the response
# File lib/sinatra/base.rb, line 28
28: def accept
29: @env['HTTP_ACCEPT'].to_s.split(',').map { |a| a.strip }
30: end
# File lib/sinatra/base.rb, line 40
40: def params
41: self.GET.update(self.POST)
42: rescue EOFError, Errno::ESPIPE
43: self.GET
44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.