class method
self.parse_data_with_trailing_star
Ruby on Rails 7.2.3
Since v3.1.12Signature
self.parse_data_with_trailing_star(type)
For an input of 'text', returns [Mime[:json], Mime[:xml], Mime[:ics], Mime[:html], Mime[:css], Mime[:csv], Mime[:js], Mime[:yaml], Mime[:text]].
For an input of 'application', returns [Mime[:html], Mime[:js], Mime[:xml], Mime[:yaml], Mime[:atom], Mime[:json], Mime[:rss], Mime[:url_encoded_form]].
Parameters
-
typereq
Source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 236
def parse_data_with_trailing_star(type)
Mime::SET.select { |m| m.match?(type) }
end
Defined in actionpack/lib/action_dispatch/http/mime_type.rb line 236
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mime::Type