fastr-compress
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:compresses output in a fastr application
fastr-compress
================

*fastr-compress* is a plugin for [fastr](http://github.com/chrismoos/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.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。