CompressionEncoderConfig

data class CompressionEncoderConfig(name: String, encoder: CompressionEncoder, conditions: List<ApplicationCall.(OutgoingContent) -> Boolean>, priority: Double)

An encoder configuration for the Compression plugin.

Constructors

Link copied to clipboard
fun CompressionEncoderConfig(name: String, encoder: CompressionEncoder, conditions: List<ApplicationCall.(OutgoingContent) -> Boolean>, priority: Double)

Properties

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

Conditions for an encoder.

Link copied to clipboard
val encoder: CompressionEncoder

An encoder implementation.

Link copied to clipboard
val name: String

An encoder name matched against an entry in the Accept-Encoding header.

Link copied to clipboard
val priority: Double

A priority of an encoder.