Gzip

expect class Gzip : CompressionAlgorithm

The gzip compression algorithm. Used to compress http requests.

See: https://en.wikipedia.org/wiki/Gzip

actual class Gzip

The gzip compression algorithm. Used to compress http requests.

See: https://en.wikipedia.org/wiki/Gzip

Constructors

Link copied to clipboard
expect constructor()
constructor()

Properties

Link copied to clipboard
expect open override 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.

actual open val contentEncoding: String
Link copied to clipboard
expect open override val id: String

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

actual open val id: String

Functions

Link copied to clipboard
expect open override fun compress(stream: ByteStream): ByteStream

Compresses a byte stream.

actual open fun compress(stream: <Error class: unknown class>): <Error class: unknown class>