0.04
Low commit activity in last 3 years
There's a lot of open issues
No release in over a year
Rack::Brotli enables Google's Brotli compression on HTTP responses
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.6
~> 3.12
~> 12, >= 12.3.3

Runtime

>= 0.1.7
>= 1.4
 Project Readme

Rack::Brotli Gem Version Build Status

Rack::Brotli compresses Rack responses using Google's Brotli compression algorithm.

Brotli generally compresses better than gzip for the same CPU cost and is supported by Chrome, Firefox, IE and Opera.

Use

Install gem:

gem install rack-brotli

Requiring 'rack/brotli' will autoload Rack::Brotli module. The following example shows what a simple rackup (config.ru) file might look like:

require 'rack'
require 'rack/brotli'

use Rack::Brotli

run theapp

Testing

To run the entire test suite, run

rake test

Links