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

compress

fun compress(readChannel: ByteReadChannel, coroutineContext: <ERROR CLASS>): ByteReadChannel

Overrides CompressionEncoder.compress

Wraps readChannel into a compressing ByteReadChannel

fun compress(writeChannel: ByteWriteChannel, coroutineContext: <ERROR CLASS>): ByteWriteChannel

Overrides CompressionEncoder.compress

Wraps writeChannel into a compressing ByteWriteChannel