class Sinatra::Request

rack.rubyforge.org/doc/classes/Rack/Request.html<br>The request object. See Rack::Request for more info:

def accept

Returns an array of acceptable media types for the response
def accept
  @env['HTTP_ACCEPT'].to_s.split(',').map { |a| a.strip }
end

def params

Override Rack 0.9.x's #params implementation (see #72 in lighthouse)
def params
  self.GET.update(self.POST)
rescue EOFError, Errno::ESPIPE
  self.GET
end

def user_agent

def user_agent
  @env['HTTP_USER_AGENT']
end