condition
fun ConditionsHolderBuilder.condition(predicate: ApplicationCall.(OutgoingContent) -> Boolean)
Content copied to clipboard
Appends a custom condition to the encoder or the Compression configuration. A predicate returns true
when a response need to be compressed. If at least one condition is not met, a response isn't compressed.
Note that adding a single condition removes the default configuration.