about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-21 16:25:39 -0700
committerEric Wong <normalperson@yhbt.net>2010-10-22 18:37:45 +0000
commit15631717fce044fbad2f386a7b1c7daf4bdd83d2 (patch)
treef32c80aafb8b5fe13fefe9a1e3765dd757ccde7d /lib/rainbows.rb
parentd4a2b5dd2b85f4b2d3bb120ee1e1b0dde31bc25c (diff)
downloadrainbows-15631717fce044fbad2f386a7b1c7daf4bdd83d2.tar.gz
Despite the large number of changes, most of it is code
movement here.
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