0.0
No commit activity in last 3 years
No release in over 3 years
Compresses output with GZip or Deflate for responses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.1.0
 Project Readme

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.