summary refs log tree commit
path: root/lib/rack/file.rb
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2007-03-01 18:53:00 +0000
committerChristian Neukirchen <chneukirchen@gmail.com>2007-03-01 18:53:00 +0000
commit376fa1e312a0ae5509673ea120ad6e68fb1c8d39 (patch)
tree5215afe4b9c101c3969b3efa251ea04b25aa8aa7 /lib/rack/file.rb
parent9181a58b31f0de80ed43e3186ed3fc6fb51f2c49 (diff)
downloadrack-376fa1e312a0ae5509673ea120ad6e68fb1c8d39.tar.gz
Add RDocs
darcs-hash:20070301185301-4fc50-159ee23dc4ab0c209dcbf8d7e014a308d72434d7.gz
Diffstat (limited to 'lib/rack/file.rb')
-rw-r--r--lib/rack/file.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rack/file.rb b/lib/rack/file.rb
index a13eeb2b..7d6c6453 100644
--- a/lib/rack/file.rb
+++ b/lib/rack/file.rb
@@ -1,4 +1,10 @@
 module Rack
+  # Rack::File serves files below the +root+ given, according to the
+  # path info of the Rack request.
+  #
+  # Handlers can detect if bodies are a Rack::File, and use mechanisms
+  # like sendfile on the +path+.
+  
   class File
     attr_accessor :root
     attr_accessor :path
@@ -40,7 +46,8 @@ module Rack
       }
     end
 
-    # From WEBrick
+    # :stopdoc:
+    # From WEBrick.
     MIME_TYPES = {
       "ai"    => "application/postscript",
       "asc"   => "text/plain",
@@ -96,5 +103,6 @@ module Rack
       "xwd"   => "image/x-xwindowdump",
       "zip"   => "application/zip",
     }
+    # :startdoc:
   end
 end