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

matchContentType

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

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

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