- A Brotli filter for the Play framework
- A Brotli compression
Operator
and a decompressionOperator
for Akka streams - A Brotli compression
Operator
and a decompressionOperator
for Apache Pekko streams
Add as a dependency:
-
libraryDependencies += "com.gu" %% "play-v30-brotli-filter" % "[latest version number]"
-
libraryDependencies += "com.gu" %% "play-v29-brotli-filter" % "[latest version number]"
-
libraryDependencies += "com.gu" %% "play-v28-brotli-filter" % "[latest version number]"
-
libraryDependencies += "com.gu" %% "akka-stream-brotli" % "[latest version number]"
-
libraryDependencies += "com.gu" %% "pekko-stream-brotli" % "[latest version number]"
Currently the only parameter you can configure is quality, which defaults to 11
.
play.filters {
# Brotli filter configuration
brotli {
# The compression-speed vs compression-density tradeoffs. The higher the quality, the slower the compression. Range is 0 to 11
quality = 11
}
}