From 15631717fce044fbad2f386a7b1c7daf4bdd83d2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Oct 2010 16:25:39 -0700 Subject: code shuffling for kgio Despite the large number of changes, most of it is code movement here. --- lib/rainbows.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/rainbows.rb') 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 -- cgit v1.2.3-24-ge0c7