about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/rainbows.rb4
-rw-r--r--lib/rainbows/base.rb1
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index d0b3e8a..1a3d6ff 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -34,8 +34,8 @@ module Rainbows
   require 'rainbows/const'
   require 'rainbows/http_server'
   require 'rainbows/response'
-  require 'rainbows/base'
-  require 'rainbows/tee_input'
+  autoload :Base, 'rainbows/base'
+  autoload :TeeInput, 'rainbows/tee_input'
   autoload :Sendfile, 'rainbows/sendfile'
   autoload :AppPool, 'rainbows/app_pool'
   autoload :DevFdResponse, 'rainbows/dev_fd_response'
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index d9f46f7..180c80c 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -1,5 +1,4 @@
 # -*- encoding: binary -*-
-require 'rainbows/tee_input'
 
 # base class for Rainbows concurrency models, this is currently used by
 # ThreadSpawn and ThreadPool models.  Base is also its own