%PDF- %PDF-
Direktori : /opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Deflater/ |
Current File : //opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Deflater/new-c.yaml |
--- !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