object GzipFlow
Ordering
- Alphabetic
- By Inheritance
Inherited
- GzipFlow
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- 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
orInt.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.
A simple Gzip Flow
GZIPs each chunk separately.