CompressionOptions

data class CompressionOptions(encoders: Map<String, CompressionEncoderConfig>, conditions: List<ApplicationCall.(OutgoingContent) -> Boolean>)

Compression feature configuration

Constructors

Link copied to clipboard
fun CompressionOptions(encoders: Map<String, CompressionEncoderConfig> = emptyMap(), conditions: List<ApplicationCall.(OutgoingContent) -> Boolean> = emptyList())

Properties

Link copied to clipboard
val conditions: List<ApplicationCall.(OutgoingContent) -> Boolean>

Conditions for all encoders

Link copied to clipboard
val encoders: Map<String, CompressionEncoderConfig>

Map of encoder configurations