Gzip

expect class Gzip : CompressionAlgorithm

The gzip compression algorithm. Used to compress http requests.

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

actual class Gzip : CompressionAlgorithm

The gzip compression algorithm. Used to compress http requests.

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

actual class Gzip : CompressionAlgorithm

The gzip compression algorithm. Used to compress http requests.

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

Constructors

Link copied to clipboard
expect constructor()
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 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 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.

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 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 override 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
expect open override fun compress(stream: ByteStream): ByteStream

Compresses a byte stream.

actual open override fun compress(stream: ByteStream): ByteStream

Compresses a byte stream.

actual open override fun compress(stream: ByteStream): ByteStream

Compresses a byte stream.