fun isJsonMime()

in src/main/kotlin/org/jetbrains/teamcity/rest/infrastructure/ApiClient.kt [115:118]


    fun isJsonMime(mime: String?): Boolean {
        val jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"
        return mime != null && (mime.matches(jsonMime.toRegex()) || mime == "*/*")
    }