GZipEncoder

expect object GZipEncoder : ContentEncoder

Implementation of ContentEncoder using gzip algorithm

Implementation of ContentEncoder using gzip algorithm

Implementation of ContentEncoder using gzip algorithm

Implementation of ContentEncoder using gzip algorithm

Properties

Link copied to clipboard
abstract val name: String

Encoder identifier to use in http headers.

open override val name: String

Encoder identifier to use in http headers.

open override val name: String

Encoder identifier to use in http headers.

open override val name: String

Encoder identifier to use in http headers.

Functions

Link copied to clipboard
abstract fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext = EmptyCoroutineContext): 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

Launch coroutine to decode source bytes.

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

Launch coroutine to decode source bytes.

Link copied to clipboard
abstract fun encode(source: ByteReadChannel, coroutineContext: CoroutineContext = EmptyCoroutineContext): ByteReadChannel
abstract fun encode(source: ByteWriteChannel, coroutineContext: CoroutineContext = EmptyCoroutineContext): ByteWriteChannel

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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

Launch coroutine to encode source bytes.

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?

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.