D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby19
/
lib64
/
ruby
/
gems
/
1.9.1
/
doc
/
rack-1.6.4
/
ri
/
Rack
/
Deflater
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:EFI"Rack::Deflater::new;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"'Creates Rack::Deflater middleware.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type: LABEL:@items[o:RDoc::Markup::ListItem:@labelI"app;F; [o; ; [I"rack app instance;Fo;;I"options;F; [o; ; [I"#hash of deflater options, i.e.;FI"S'if' - a lambda enabling / disabling deflation based on returned boolean value;Fo:RDoc::Markup::Verbatim; [I"^e.g use Rack::Deflater, :if => lambda { |env, status, headers, body| body.length > 512 } ;Fo; ; [I"B'include' - a list of content types that should be compressed;F: @file000[ I"(app, options = {});FI"lib/rack/deflater.rb;F