about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-10 08:04:48 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-10 08:04:48 +0000
commitd3b97d1114e2d23a9231fe889cd5bf6927d451ba (patch)
tree6c4d7a033dad1edc91b72a9e7fa36203c60c8116 /lib/rainbows/base.rb
parent9838b614621bbbff27a91166406d833be85adbbd (diff)
downloadrainbows-d3b97d1114e2d23a9231fe889cd5bf6927d451ba.tar.gz
Since we suck at building websites, we just rely on RDoc as a
website builder.  And since Rainbows! is an application server
(and not a programming library), our internal API should be of
little interest to end users.

Anybody interested in Rainbows! (or any other project) internals
should be reading the source.
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r--lib/rainbows/base.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index a619b00..3fb5a94 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -19,7 +19,7 @@ module Rainbows::Base
   HttpParser = Unicorn::HttpParser
 
   # this method is called by all current concurrency models
-  def init_worker_process(worker)
+  def init_worker_process(worker) # :nodoc:
     super(worker)
     Rainbows::Response.setup(self.class)
     Rainbows::MaxBody.setup
@@ -40,7 +40,7 @@ module Rainbows::Base
     logger.info "Rainbows! #@use worker_connections=#@worker_connections"
   end
 
-  def wait_headers_readable(client)
+  def wait_headers_readable(client)  # :nodoc:
     IO.select([client], nil, nil, G.kato)
   end
 
@@ -48,7 +48,7 @@ module Rainbows::Base
   # in 3 easy steps: read request, call app, write app response
   # this is used by synchronous concurrency models
   #   Base, ThreadSpawn, ThreadPool
-  def process_client(client)
+  def process_client(client) # :nodoc:
     buf = client.readpartial(CHUNK_SIZE) # accept filters protect us here
     hp = HttpParser.new
     env = {}
@@ -87,7 +87,7 @@ module Rainbows::Base
     client.close unless client.closed?
   end
 
-  def self.included(klass)
+  def self.included(klass) # :nodoc:
     klass.const_set :LISTENERS, Rainbows::HttpServer::LISTENERS
     klass.const_set :G, Rainbows::G
   end