The MIME type of the HTTP request, such as Mime::XML.
For backward compatibility, the post format is extracted from the X-Post-Data-Format HTTP header if present.
Source Code
# File action_controller/request.rb, line 78 def content_type @content_type ||= Mime::Type.lookup(content_type_without_parameters) end
<code/>and<pre/>for code samples.