ktor-server-core / io.ktor.features / CompressionEncoder / compress

compress

abstract fun compress(readChannel: ByteReadChannel, coroutineContext: <ERROR CLASS> = Dispatchers.Unconfined): ByteReadChannel

Wraps readChannel into a compressing ByteReadChannel

abstract fun compress(writeChannel: ByteWriteChannel, coroutineContext: <ERROR CLASS> = Dispatchers.Unconfined): ByteWriteChannel

Wraps writeChannel into a compressing ByteWriteChannel