ktor-server-core / io.ktor.features / Compression / Feature

Feature

companion object Feature : ApplicationFeature<ApplicationCallPipeline, Configuration, Compression>

ApplicationFeature implementation for Compression

Companion Object Properties

SuppressionAttribute

val SuppressionAttribute: AttributeKey<Boolean>

Attribute that could be added to an application call to prevent it's response from being compressed

key

val key: AttributeKey<Compression>

Unique key that identifies a feature

Companion Object Functions

install

fun install(pipeline: ApplicationCallPipeline, configure: Configuration.() -> Unit): Compression

Feature installation script