Compression

class Compression

Feature to compress a response based on conditions and ability of client to decompress it

Types

Configuration

class Configuration : ConditionsHolderBuilder

Configuration builder for Compression feature

Feature

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

ApplicationFeature implementation for Compression

Constructors

<init>

Compression(compression: Configuration)

Feature to compress a response based on conditions and ability of client to decompress it

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

Unique key that identifies a feature

Companion Object Functions

install

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

Feature installation script