about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index 58ba23f..b614b67 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -41,8 +41,11 @@ module Rainbows
   require 'rainbows/const'
   require 'rainbows/http_server'
   require 'rainbows/response'
+  require 'rainbows/client'
+  require 'rainbows/http_request'
+  require 'rainbows/tee_input'
+  require 'rainbows/process_client'
   autoload :Base, 'rainbows/base'
-  autoload :TeeInput, 'rainbows/tee_input'
   autoload :Sendfile, 'rainbows/sendfile'
   autoload :AppPool, 'rainbows/app_pool'
   autoload :DevFdResponse, 'rainbows/dev_fd_response'
@@ -75,13 +78,6 @@ module Rainbows
       HttpServer.new(app, options).start.join
     end
 
-    # returns a string representing the address of the given client +io+
-    # For local UNIX domain sockets, this will return a string referred
-    # to by the (non-frozen) Kgio::LOCALHOST constant.
-    def addr(io) # :nodoc:
-      io.respond_to?(:peeraddr) ? io.peeraddr[-1] : Kgio::LOCALHOST
-    end
-
     # :stopdoc:
     # the default max body size is 1 megabyte (1024 * 1024 bytes)
     @@max_bytes = 1024 * 1024