From 27eb2d7ebd29239a5043a528c97c6dd218d03217 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 30 Nov 2010 16:26:20 -0800 Subject: support pass-through :encoding for deflate and gzip These allow serving pre-compressed data off disk and on-the-fly uncompressing for the few clients that do not accept compressed responses. --- lib/metropolis.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/metropolis.rb') diff --git a/lib/metropolis.rb b/lib/metropolis.rb index a7cfc47..3afc3ec 100644 --- a/lib/metropolis.rb +++ b/lib/metropolis.rb @@ -3,6 +3,9 @@ require 'rack' require 'uri' module Metropolis + autoload :InputWrapper, 'metropolis/input_wrapper' + autoload :Deflate, 'metropolis/deflate' + autoload :Gzip, 'metropolis/gzip' autoload :TC, 'metropolis/tc' autoload :Hash, 'metropolis/hash' -- cgit v1.2.3-24-ge0c7