BrotliFlow

play.api.libs.streams.BrotliFlow
object BrotliFlow

A simple Brotli Flow

Brotlis each chunk separately.

Attributes

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

Members list

Value members

Concrete methods

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

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

Create a Brotli Flow with the given buffer size. The bufferSize controls how much data is sent to the Brotli 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