Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rack-brotli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-brotli

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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 # Default compression quality is 5

# You can also provide native Brotli compression options:
# use Rack::Brotli, quality: 11

run theapp

Testing

To run the entire test suite, run

bundle exec rake test

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc