Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompressionUtils

Hierarchy

  • CompressionUtils

Index

Methods

Static decompressBuffer

Static Private decompressError

Static decompressStream

  • decompressStream(responseStream: Writable, encoding: ContentEncoding, normalizeNewLines?: boolean): Duplex
  • Add zlib decompression transform to a Writable stream. Any compressed data written to the returned stream will be decompressed using the specified algorithm.

    The returned stream should only be used internally by a REST client to write to. Use the original stream to read back the decompressed output and handle decompression errors.

    throws

    {ImperativeError}

    Parameters

    • responseStream: Writable

      Writable stream that will receive compressed data

    • encoding: ContentEncoding

      Value of Content-Encoding header

    • Optional normalizeNewLines: boolean

      Specifies if line endings should be converted

    Returns Duplex

Static Private newLinesTransform

  • newLinesTransform(): Transform

Static Private zlibTransform

Generated using TypeDoc