Configuration.decompress()
Description
Appends a decompress filter to the current pipeline layout.
A decompress filter decompresses input Data stream.
- INPUT - Data to decompress.
- OUTPUT - Decompressed Data.
The algorithm used for decompression is specified by the algorithm parameter. The decompression algorithms currently supported are "inflate" and "brotli".
You can also give a function to algorithm that dynamically returns the algorithm to use. When it returns nullish (null or undefined), no decompression will be done.
Syntax
pipy().pipeline().decompressMessage(algorithm)pipy().pipeline().decompressMessage(() => whatAlgorithm())
Parameters
decompress(algorithm)
algorithm
Algorithm used in decompression. Available algorithms include "inflate", "brotli". Can be one of these strings or a function that returns one of them.
Return Value
The same Configuration object.