doc/rdoc/classes/Mongrel/DirHandler.html in mongrel-0.3.1 vs doc/rdoc/classes/Mongrel/DirHandler.html in mongrel-0.3.2
- old
+ new
@@ -101,15 +101,16 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000024">can_serve</a>
- <a href="#M000023">new</a>
- <a href="#M000027">process</a>
- <a href="#M000025">send_dir_listing</a>
- <a href="#M000026">send_file</a>
+ <a href="#M000027">add_mime_type</a>
+ <a href="#M000023">can_serve</a>
+ <a href="#M000022">new</a>
+ <a href="#M000026">process</a>
+ <a href="#M000024">send_dir_listing</a>
+ <a href="#M000025">send_file</a>
</div>
</div>
</div>
@@ -153,16 +154,34 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000023" class="method-detail">
- <a name="M000023"></a>
+ <div id="method-M000027" class="method-detail">
+ <a name="M000027"></a>
<div class="method-heading">
- <a href="DirHandler.src/M000023.html" target="Code" class="method-signature"
- onclick="popupCode('DirHandler.src/M000023.html');return false;">
+ <a href="DirHandler.src/M000027.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000027.html');return false;">
+ <span class="method-name">add_mime_type</span><span class="method-args">(extension, type)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+There is a small number of default mime types for extensions, but this lets
+you add any others you’ll need when serving content.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000022" class="method-detail">
+ <a name="M000022"></a>
+
+ <div class="method-heading">
+ <a href="DirHandler.src/M000022.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000022.html');return false;">
<span class="method-name">new</span><span class="method-args">(path, listing_allowed=true, index_html="index.html")</span>
</a>
</div>
<div class="method-description">
@@ -172,16 +191,16 @@
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000024" class="method-detail">
- <a name="M000024"></a>
+ <div id="method-M000023" class="method-detail">
+ <a name="M000023"></a>
<div class="method-heading">
- <a href="DirHandler.src/M000024.html" target="Code" class="method-signature"
- onclick="popupCode('DirHandler.src/M000024.html');return false;">
+ <a href="DirHandler.src/M000023.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000023.html');return false;">
<span class="method-name">can_serve</span><span class="method-args">(path_info)</span>
</a>
</div>
<div class="method-description">
@@ -190,16 +209,16 @@
not).
</p>
</div>
</div>
- <div id="method-M000027" class="method-detail">
- <a name="M000027"></a>
+ <div id="method-M000026" class="method-detail">
+ <a name="M000026"></a>
<div class="method-heading">
- <a href="DirHandler.src/M000027.html" target="Code" class="method-signature"
- onclick="popupCode('DirHandler.src/M000027.html');return false;">
+ <a href="DirHandler.src/M000026.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000026.html');return false;">
<span class="method-name">process</span><span class="method-args">(request, response)</span>
</a>
</div>
<div class="method-description">
@@ -208,36 +227,36 @@
allowed (based on the listing_allowed paramter to the constructor).
</p>
</div>
</div>
- <div id="method-M000025" class="method-detail">
- <a name="M000025"></a>
+ <div id="method-M000024" class="method-detail">
+ <a name="M000024"></a>
<div class="method-heading">
- <a href="DirHandler.src/M000025.html" target="Code" class="method-signature"
- onclick="popupCode('DirHandler.src/M000025.html');return false;">
+ <a href="DirHandler.src/M000024.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000024.html');return false;">
<span class="method-name">send_dir_listing</span><span class="method-args">(base, dir, response)</span>
</a>
</div>
<div class="method-description">
<p>
Returns a simplistic directory listing if they’re enabled, otherwise
a 403. Base is the base URI from the REQUEST_URI, dir is the directory to
serve on the file system (comes from <a
-href="DirHandler.html#M000024">can_serve</a>()), and response is the <a
+href="DirHandler.html#M000023">can_serve</a>()), and response is the <a
href="HttpResponse.html">HttpResponse</a> object to send the results on.
</p>
</div>
</div>
- <div id="method-M000026" class="method-detail">
- <a name="M000026"></a>
+ <div id="method-M000025" class="method-detail">
+ <a name="M000025"></a>
<div class="method-heading">
- <a href="DirHandler.src/M000026.html" target="Code" class="method-signature"
- onclick="popupCode('DirHandler.src/M000026.html');return false;">
+ <a href="DirHandler.src/M000025.html" target="Code" class="method-signature"
+ onclick="popupCode('DirHandler.src/M000025.html');return false;">
<span class="method-name">send_file</span><span class="method-args">(req, response)</span>
</a>
</div>
<div class="method-description">
\ No newline at end of file