guardian / play-brotli-filter   0.10

Apache License 2.0 GitHub

Brotli filter for the playframework

Scala versions: 2.13 2.12 2.11

Brotli filter for play

Maven Central License

A Brotli filter for the playframework

Install

Add play-brotli-filter as a dependency:

libraryDependencies ++= Seq(
 "com.gu" %% "play-brotli-filter" % "0.9",
)

Configure

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

  }
}