object GzipFlow

A simple Gzip Flow

GZIPs each chunk separately.

Source
GzipFlow.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GzipFlow
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def gzip(bufferSize: Int = 512, compressionLevel: Int = Deflater.DEFAULT_COMPRESSION): Flow[ByteString, ByteString, _]

    Create a Gzip Flow with the given buffer size.

    Create a Gzip Flow with the given buffer size. The bufferSize controls how much data is sent to the Gzip compressor in one go. You can use 0 or Int.MaxValue to disable the buffer completely.

    In general, it is recommended to turn off the buffer and prevent generation of overlong chunks at the source.