class CybridApiId::ApiClient
def json_mime?(mime)
-
(Boolean)
- True if the MIME is application/json
Parameters:
-
mime
(String
) -- MIME
def json_mime?(mime) (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end