Mini Shell
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Creates Rack::Deflater middleware.
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: app
body: rack app instance
- !ruby/struct:SM::Flow::LI
label: options
body: hash of deflater options, i.e. 'if' - a lambda enabling / disabling deflation based on returned boolean value
- !ruby/struct:SM::Flow::VERB
body: " e.g use Rack::Deflater, :if => lambda { |env, status, headers, body| body.length > 512 }\n"
- !ruby/struct:SM::Flow::P
body: "'include' - a list of content types that should be compressed"
type: :LABELED
full_name: Rack::Deflater::new
is_singleton: true
name: new
params: (app, options = {})
visibility: public
Zerion Mini Shell 1.0