= private = protected
accepts()
Returns the accepted MIME type for the request.
# File actionpack/lib/action_controller/request.rb, line 93 def accepts header = @env['HTTP_ACCEPT'].to_s.strip if header.empty? [content_type, Mime::ALL].compact else Mime::Type.parse(header) end end