GzipFlow

play.api.libs.streams.GzipFlow
object GzipFlow

A simple Gzip Flow

GZIPs each chunk separately.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
GzipFlow.type

Members list

Value members

Concrete methods

def gzip(bufferSize: Int, compressionLevel: Int): Flow[ByteString, ByteString, _]

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.

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.

Attributes