Module: Aspera::Mime
- Defined in:
- lib/aspera/rest.rb
Constant Summary collapse
- JSON =
'application/json'- WWW =
'application/x-www-form-urlencoded'- TEXT =
'text/plain'
Class Method Summary collapse
-
.json?(mime) ⇒ Boolean
Check if a MIME type is JSON, including parameters, e.g.
Class Method Details
.json?(mime) ⇒ Boolean
Check if a MIME type is JSON, including parameters, e.g. application/json; charset=utf-8
61 62 63 |
# File 'lib/aspera/rest.rb', line 61 def json?(mime) JSON_LIST.include?(mime) end |