method
content_type
v2.3.8 -
Show latest stable
- Class:
ActionController::Request
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.