Skip to content

chrismoos/fastr-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastr-compress

fastr-compress is a plugin for fastr that will compress a Rack response body.

how it works

The plugin is called after a Rack response has been returned from your application. It will inspect the Accept-Encoding header and attempt to encode the response's body if possible. Currently gzip and deflate are supported.

usage

Add fastr-compress to your Gemfile

source "http://rubygems.org"
gem 'fastr-compress'
...

Enable the plugin in your fastr application by modifying your app/config/settings.rb file

config.plugins << Fastr::Compress

limitations

Currently asynchronous/streaming responses are not supported.

About

compresses output in a fastr application

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages