about summary refs log tree commit
path: root/lib/metropolis.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-30 16:26:20 -0800
committerEric Wong <normalperson@yhbt.net>2010-11-30 16:26:20 -0800
commit27eb2d7ebd29239a5043a528c97c6dd218d03217 (patch)
tree7eb9ccc289cd78af10374c01fb80061f0abeeff3 /lib/metropolis.rb
parent03755186d6cb968d44d7eb04de3ed2d047180272 (diff)
downloadmetropolis-27eb2d7ebd29239a5043a528c97c6dd218d03217.tar.gz
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.
Diffstat (limited to 'lib/metropolis.rb')
-rw-r--r--lib/metropolis.rb3
1 files changed, 3 insertions, 0 deletions
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'