BrotliFilterConfig

play.filters.brotli.BrotliFilterConfig
See theBrotliFilterConfig companion object
case class BrotliFilterConfig(quality: Int, bufferSize: Int, chunkedThreshold: Int, shouldBrotli: (RequestHeader, Result) => Boolean)

Configuration for the brotli filter

Value parameters

chunkedThreshold

The content length threshold, after which the filter will switch to chunking the result.

quality

The compression-speed vs compression-density tradeoffs. The higher the quality, the slower the compression. Range is 0 to 11

shouldBrotli

Whether the given request/result should be compressed with brotli. This can be used, for example, to implement black/white lists for compressing by content type.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this()

Concrete methods

def withShouldBrotli(shouldBrotli: (RequestHeader, Result) => Boolean): BrotliFilterConfig
def withShouldBrotli(shouldBrotli: BiFunction[RequestHeader, Result, Boolean]): BrotliFilterConfig

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product