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