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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article