CompressionAlgorithm

Represents a compression algorithm. Used by an interceptor to compress request payloads on operations with the requestCompression trait

Inheritors

Properties

Link copied to clipboard
abstract val contentEncoding: String

The name of the content encoding to be appended to the Content-Encoding header. The IANA has a list of registered encodings for reference.

Link copied to clipboard
abstract val id: String

The ID of the compression algorithm. This will be used to match against the supported compression algorithms of an operation.

Functions

Link copied to clipboard
abstract fun compress(stream: ByteStream): ByteStream

Compresses a byte stream.