CompressionEncoderConfig

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

Configuration for an encoder

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 the encoder

Link copied to clipboard
val encoder: CompressionEncoder

Encoder implementation

Link copied to clipboard
val name: String

Name of the encoder, matched against entry in Accept-Encoding header

Link copied to clipboard
val priority: Double

Priority of the encoder