Module: Stickler::Middleware::Helpers::Compression
- Included in:
- Index
- Defined in:
- lib/stickler/middleware/helpers.rb
Overview
set what, if any kind of compression to use on the response This is a Gem server specific type compressions, as it does not set the http headers and such in the same manner as normal compressed HTTP responses
compression may be set to one of the following, all others will be ignored.
- :gzip
-
use Gem.gzip
- :deflate
-
use Gem.deflate
- nil
-
no compression
Instance Method Summary collapse
Instance Method Details
#compression ⇒ Object
18 |
# File 'lib/stickler/middleware/helpers.rb', line 18 def compression() env['stickler.compression'] end |
#compression=(type) ⇒ Object
17 |
# File 'lib/stickler/middleware/helpers.rb', line 17 def compression=( type ) env['stickler.compression'] = type end |