Configuration
Configuration builder for Compression feature
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
Appends an encoder to the configuration
Properties
Link copied to clipboard
open override val conditions: MutableList<ApplicationCall.(OutgoingContent) -> Boolean>
Content copied to clipboard
Extensions
Link copied to clipboard
fun Compression.Configuration.deflate(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends deflate
encoder with default priority of 0.9
Link copied to clipboard
fun Compression.Configuration.gzip(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends gzip
encoder
Link copied to clipboard
fun Compression.Configuration.identity(block: CompressionEncoderBuilder.() -> Unit = {})
Content copied to clipboard
Appends identity
encoder