about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-20 21:21:29 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-20 21:21:29 +0000
commit4aa7050dd281caf5f118cf29eeedf2cec3aab079 (patch)
treea717f0a7093f984bd4a6f69eeae66adbe90efb63 /lib
parent028417a18fc2921d07ba13a4c3674606945787f5 (diff)
downloadunicorn-4aa7050dd281caf5f118cf29eeedf2cec3aab079.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@198 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib')
-rw-r--r--lib/mongrel.rb6
-rw-r--r--lib/mongrel/cgi.rb2
-rw-r--r--lib/mongrel/handlers.rb2
-rw-r--r--lib/mongrel/rails.rb6
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index d3ea2ad..780f9bd 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -104,7 +104,7 @@ module Mongrel
     # This is the part of the path after the SCRIPT_NAME.  URIClassifier will determine this.
     PATH_INFO="PATH_INFO".freeze
 
-    # This is the intial part that your handler is identified as by URIClassifier.
+    # This is the initial part that your handler is identified as by URIClassifier.
     SCRIPT_NAME="SCRIPT_NAME".freeze
 
     # The original URI requested by the client.  Passed to URIClassifier to build PATH_INFO and SCRIPT_NAME.
@@ -419,7 +419,7 @@ module Mongrel
   # You use it by doing the following:
   #
   #   server = HttpServer.new("0.0.0.0", 3000)
-  #   server.register("/stuff", MyNifterHandler.new)
+  #   server.register("/stuff", MyNiftyHandler.new)
   #   server.run.join
   #
   # The last line can be just server.run if you don't want to join the thread used.
@@ -491,7 +491,7 @@ module Mongrel
               params[Const::SCRIPT_NAME] = script_name
               params[Const::REMOTE_ADDR] = params[Const::HTTP_X_FORWARDED_FOR] || client.peeraddr.last
 
-              # TODO: Find a faster/better way to carve out the range, preferrably without copying.
+              # TODO: Find a faster/better way to carve out the range, preferably without copying.
               request = HttpRequest.new(params, data[nparsed ... data.length] || "", client)
 
               # in the case of large file uploads the user could close the socket, so skip those requests
diff --git a/lib/mongrel/cgi.rb b/lib/mongrel/cgi.rb
index 7e93ba3..a9a7539 100644
--- a/lib/mongrel/cgi.rb
+++ b/lib/mongrel/cgi.rb
@@ -10,7 +10,7 @@ module Mongrel
   # The CGIWrapper.handler attribute is normally not set and is available for
   # frameworks that need to get back to the handler.  Rails uses this to give
   # people access to the RailsHandler#files (DirHandler really) so they can
-  # look-up paths and do other things withthe files managed there.
+  # look-up paths and do other things with the files managed there.
   #
   # In Rails you can get the real file for a request with:
   #
diff --git a/lib/mongrel/handlers.rb b/lib/mongrel/handlers.rb
index d71e151..681056f 100644
--- a/lib/mongrel/handlers.rb
+++ b/lib/mongrel/handlers.rb
@@ -206,7 +206,7 @@ module Mongrel
     end
 
     # Process the request to either serve a file or a directory listing
-    # if allowed (based on the listing_allowed paramter to the constructor).
+    # if allowed (based on the listing_allowed parameter to the constructor).
     def process(request, response)
       req_method = request.params[Const::REQUEST_METHOD] || Const::GET
       req_path = can_serve request.params[Const::PATH_INFO]
diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb
index e490123..d1e8be6 100644
--- a/lib/mongrel/rails.rb
+++ b/lib/mongrel/rails.rb
@@ -19,7 +19,7 @@ module Mongrel
     #
     # * If the requested exact PATH_INFO exists as a file then serve it.
     # * If it exists at PATH_INFO+".html" exists then serve that.
-    # * Finally, construct a Mongrel::CGIWrapper and run Dispatcher.dispath to have Rails go.
+    # * Finally, construct a Mongrel::CGIWrapper and run Dispatcher.dispatch to have Rails go.
     #
     # This means that if you are using page caching it will actually work with Mongrel
     # and you should see a decent speed boost (but not as fast as if you use lighttpd).
@@ -42,7 +42,7 @@ module Mongrel
       #
       # * If the requested exact PATH_INFO exists as a file then serve it.
       # * If it exists at PATH_INFO+".html" exists then serve that.
-      # * Finally, construct a Mongrel::CGIWrapper and run Dispatcher.dispath to have Rails go.
+      # * Finally, construct a Mongrel::CGIWrapper and run Dispatcher.dispatch to have Rails go.
       def process(request, response)
         return if response.socket.closed?
 
@@ -115,7 +115,7 @@ module Mongrel
       # time you call this function it does all the config
       # needed to get your rails working.  After that
       # it returns the one handler you've configured.
-      # This lets you attach Rails to any URI (and mulitple)
+      # This lets you attach Rails to any URI (and multiple)
       # you want, but still protects you from threads destroying
       # your handler.
       def rails(options={})