CompressionConfig
A configuration for the Compression plugin.
Constructors
Functions
Link copied to clipboard
Builds CompressionOptions
Link copied to clipboard
fun encoder(name: String, encoder: CompressionEncoder, block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Properties
Link copied to clipboard
open override val conditions: MutableList<ApplicationCall.(OutgoingContent) -> Boolean>
Content copied to clipboard
Extensions
Link copied to clipboard
fun CompressionConfig.deflate(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends the deflate
encoder with the block configuration and the 0.9 priority.
Link copied to clipboard
fun CompressionConfig.gzip(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends the gzip
encoder with the block configuration.
Link copied to clipboard
fun CompressionConfig.identity(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends the identity
encoder with the block configuration.