method
content_type
rails latest stable - Class:
ActionController::AbstractRequest
content_type()public
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.