DeflateEncoder

Implementation of ContentEncoder using deflate algorithm

Implementation of ContentEncoder using deflate algorithm

actual object DeflateEncoder

Implementation of ContentEncoder using deflate algorithm

Implementation of ContentEncoder using deflate algorithm

Properties

Link copied to clipboard
expect open override val name: String

Encoder identifier to use in http headers.

actual open override val name: String

Encoder identifier to use in http headers.

actual open val name: String
actual open override val name: String

Functions

Link copied to clipboard
expect open override fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel

Launch coroutine to decode source bytes.

open override fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel

Launch coroutine to decode source bytes.

open override fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel
Link copied to clipboard
expect open override fun encode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel
expect open override fun encode(source: ByteWriteChannel, coroutineContext: CoroutineContext): ByteWriteChannel

Launch coroutine to encode source bytes.

open override fun encode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel
open override fun encode(source: ByteWriteChannel, coroutineContext: CoroutineContext): ByteWriteChannel

Launch coroutine to encode source bytes.

open override fun encode(source: ByteReadChannel, coroutineContext: CoroutineContext): ByteReadChannel
open override fun encode(source: ByteWriteChannel, coroutineContext: CoroutineContext): ByteWriteChannel
Link copied to clipboard
open fun predictCompressedLength(contentLength: Long): Long?

Provides an estimation for the compressed length based on the originalLength or return null if it's impossible.

open fun predictCompressedLength(contentLength: Long): Long?

Provides an estimation for the compressed length based on the originalLength or return null if it's impossible.

open fun predictCompressedLength(contentLength: Long): Long?