ContentEncoder
A request/response content encoder.
Inheritors
Properties
Functions
Link copied to clipboard
abstract fun decode(source: ByteReadChannel, coroutineContext: CoroutineContext = EmptyCoroutineContext): 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.
Link copied to clipboard
Provides an estimation for the compressed length based on the originalLength or return null if it's impossible.