ktor-server-core / io.ktor.features / excludeContentType

excludeContentType

fun ConditionsHolderBuilder.excludeContentType(vararg mimeTypes: ContentType): Unit

Appends a content type exclusion condition to the encoder or Compression configuration.

Please note that adding a single match condition removes the default configuration.