method
content_type
rails latest stable - Class:
ActionDispatch::Http::MimeNegotiation
content_type()public
No documentation available.
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 36
def content_type
if self.class.return_only_media_type_on_content_type
ActiveSupport::Deprecation.warn(
"Rails 7.1 will return Content-Type header without modification." " If you want just the MIME type, please use `#media_type` instead."
)
content_mime_type&.to_s
else
super
end
end