class CybridApiId::ApiClient

def json_mime?(mime)

Returns:
  • (Boolean) - True if the MIME is application/json

Parameters:
  • mime (String) -- MIME
def json_mime?(mime)
  (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
end