CompressionOptions

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

A configuration for the Compression plugin.

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>

Provides access to a map of encoders.