mongrel 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +30 -24
- data/Rakefile +12 -2
- data/bin/mongrel_rails +12 -8
- data/doc/rdoc/classes/Mongrel.html +18 -1
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +381 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000051.html +24 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000052.html +47 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000053.html +34 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000054.html +27 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000055.html +25 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000056.html +18 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000057.html +18 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000058.html +18 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000059.html +19 -0
- data/doc/rdoc/classes/Mongrel/Command.html +119 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.html +332 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000003.html +24 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000004.html +41 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000005.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000006.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000007.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000008.html +22 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000009.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000010.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000011.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000012.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +192 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000013.html +20 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000014.html +25 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000015.html +46 -0
- data/doc/rdoc/classes/Mongrel/Const.html +2 -2
- data/doc/rdoc/classes/Mongrel/DirHandler.html +283 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000023.html +20 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000024.html +42 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000025.html +40 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000026.html +31 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000027.html +38 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000028.html +18 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +171 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000060.html +18 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000061.html +18 -0
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000014.html → M000035.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000015.html → M000036.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +146 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000037.html +17 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000001.html → M000016.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000002.html → M000017.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000003.html → M000018.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000004.html → M000019.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000005.html → M000020.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000006.html → M000021.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000007.html → M000022.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +5 -5
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000029.html → M000062.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +36 -36
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000016.html → M000038.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000017.html → M000039.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000018.html → M000040.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000019.html → M000041.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000020.html → M000042.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000021.html → M000043.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000022.html → M000044.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.html +33 -33
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000008.html → M000029.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000009.html → M000030.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000010.html → M000031.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000011.html → M000032.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000012.html → M000033.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000013.html → M000034.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +33 -32
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000023.html → M000045.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000024.html → M000046.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000025.html → M000047.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000026.html → M000048.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000027.html → M000049.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000028.html → M000050.html} +0 -0
- data/doc/rdoc/classes/RailsHandler.html +225 -0
- data/doc/rdoc/classes/RailsHandler.src/M000001.html +22 -0
- data/doc/rdoc/classes/RailsHandler.src/M000002.html +48 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +45 -50
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +108 -0
- data/doc/rdoc/files/lib/mongrel/command_rb.html +110 -0
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +101 -0
- data/doc/rdoc/files/lib/mongrel/plugins_rb.html +108 -0
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +108 -0
- data/doc/rdoc/fr_class_index.html +8 -0
- data/doc/rdoc/fr_file_index.html +5 -0
- data/doc/rdoc/fr_method_index.html +62 -29
- data/lib/mongrel/command.rb +5 -5
- data/lib/mongrel/plugins.rb +3 -152
- data/lib/mongrel/rails.rb +1 -1
- metadata +95 -35
- data/test/plugins/commands/test1.rb +0 -19
- data/test/test_plugins.rb +0 -45
data/doc/rdoc/created.rid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Mon Mar 06 00:47:36 EST 2006
|
data/doc/rdoc/files/README.html
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</tr>
|
|
57
57
|
<tr class="top-aligned-row">
|
|
58
58
|
<td><strong>Last Update:</strong></td>
|
|
59
|
-
<td>
|
|
59
|
+
<td>Mon Mar 06 00:25:36 EST 2006</td>
|
|
60
60
|
</tr>
|
|
61
61
|
</table>
|
|
62
62
|
</div>
|
|
@@ -84,13 +84,34 @@ portability issues.
|
|
|
84
84
|
</p>
|
|
85
85
|
<h2>Status</h2>
|
|
86
86
|
<p>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
<a href="../classes/Mongrel.html">Mongrel</a> 0.3.9 now supports a fancy
|
|
88
|
+
RubyGems based plugin system called GemPlugin. It uses the basic machinery
|
|
89
|
+
of RubyGems to implement dynamically loaded plugins based on dependencies.
|
|
90
|
+
Writing a plugin is pretty easy, but right now it’s not as well
|
|
91
|
+
documented as it should be. There is a simple example plugin for adding a
|
|
92
|
+
status command to your mongrel. Just do:
|
|
93
93
|
</p>
|
|
94
|
+
<pre>
|
|
95
|
+
> gem install mongrel_status
|
|
96
|
+
</pre>
|
|
97
|
+
<p>
|
|
98
|
+
And you’ll then get a new status command. Then just do:
|
|
99
|
+
</p>
|
|
100
|
+
<pre>
|
|
101
|
+
> cd myrailsapp
|
|
102
|
+
> mongrel_rails start -d
|
|
103
|
+
> mongrel_rails status
|
|
104
|
+
</pre>
|
|
105
|
+
<p>
|
|
106
|
+
And it’ll print out the PID your Rails app is running under.
|
|
107
|
+
</p>
|
|
108
|
+
<p>
|
|
109
|
+
The GemPlugin project is a sub-project of <a
|
|
110
|
+
href="../classes/Mongrel.html">Mongrel</a>, but it’s licensed under
|
|
111
|
+
the Ruby license and is usable outside <a
|
|
112
|
+
href="../classes/Mongrel.html">Mongrel</a>
|
|
113
|
+
</p>
|
|
114
|
+
<h2>Quick Start</h2>
|
|
94
115
|
<p>
|
|
95
116
|
After you’ve installed (either with gem install mongrel or via
|
|
96
117
|
source) you should have the mongrel_rails command available in your PATH.
|
|
@@ -146,10 +167,15 @@ do:
|
|
|
146
167
|
$ mongrel_rails_service start -n myapp
|
|
147
168
|
</pre>
|
|
148
169
|
<p>
|
|
149
|
-
Now hit the port and poof, works.
|
|
150
|
-
problematic right now.*
|
|
170
|
+
Now hit the port and poof, works.
|
|
151
171
|
</p>
|
|
152
172
|
<p>
|
|
173
|
+
Stopping a service is simple:
|
|
174
|
+
</p>
|
|
175
|
+
<pre>
|
|
176
|
+
$ mongrel_rails_service stop -n myapp
|
|
177
|
+
</pre>
|
|
178
|
+
<p>
|
|
153
179
|
If you run into an app that’s not running right, my suggestion is to
|
|
154
180
|
run it with the regular mongrel_rails runner:
|
|
155
181
|
</p>
|
|
@@ -161,6 +187,13 @@ run it with the regular mongrel_rails runner:
|
|
|
161
187
|
Since that will spit out error messages and stuff to the console. *Use
|
|
162
188
|
CTRL-Pause/Break to stop.*
|
|
163
189
|
</p>
|
|
190
|
+
<p>
|
|
191
|
+
Best thing about the win32 support is that you can simply use the Windows
|
|
192
|
+
Services in Control Panel->Admin Tools to work with it. You can also
|
|
193
|
+
install the same Rails app as different installs. For example I’ve
|
|
194
|
+
got myapp_dev, and myapp_prod and just start/stop which one I want to work
|
|
195
|
+
with.
|
|
196
|
+
</p>
|
|
164
197
|
<h2>Install</h2>
|
|
165
198
|
<p>
|
|
166
199
|
It doesn’t explicitly require Camping, but if you want to run the
|
|
@@ -199,9 +232,9 @@ example:
|
|
|
199
232
|
<p>
|
|
200
233
|
If you run this and access port 3000 with a browser it will say
|
|
201
234
|
"hello!". If you access it with any url other than
|
|
202
|
-
"/test" it will give a simple 404. Check out the
|
|
203
|
-
Mongrel::Error404Handler
|
|
204
|
-
message.
|
|
235
|
+
"/test" it will give a simple 404. Check out the <a
|
|
236
|
+
href="../classes/Mongrel/Error404Handler.html">Mongrel::Error404Handler</a>
|
|
237
|
+
for a basic way to give a more complex 404 message.
|
|
205
238
|
</p>
|
|
206
239
|
<p>
|
|
207
240
|
This also shows the DirHandler with directory listings. This is still rough
|
|
@@ -229,44 +262,6 @@ limited processors also means that you can use ActiveRecord as-is and it
|
|
|
229
262
|
will create a matching database connection for each processor thread. More
|
|
230
263
|
on this in future releases.
|
|
231
264
|
</p>
|
|
232
|
-
<h2>The Future</h2>
|
|
233
|
-
<p>
|
|
234
|
-
With the core of <a href="../classes/Mongrel.html">Mongrel</a> completed
|
|
235
|
-
I’m now turning to the next set of features to make <a
|
|
236
|
-
href="../classes/Mongrel.html">Mongrel</a> useful for hosting web
|
|
237
|
-
applications in a heavily utilized production environment. Right now
|
|
238
|
-
I’m looking at:
|
|
239
|
-
</p>
|
|
240
|
-
<ul>
|
|
241
|
-
<li>An idea I’ve had for an insane caching handler which could speed up
|
|
242
|
-
quite a
|
|
243
|
-
|
|
244
|
-
</li>
|
|
245
|
-
</ul>
|
|
246
|
-
<p>
|
|
247
|
-
few deployments.
|
|
248
|
-
</p>
|
|
249
|
-
<p>
|
|
250
|
-
Overall though the goal of <a href="../classes/Mongrel.html">Mongrel</a> is
|
|
251
|
-
to be just enough HTTP to serve a Ruby web application that sits behind a
|
|
252
|
-
more complete web server. Everything in the next will focus on actually
|
|
253
|
-
hosting the major web frameworks for Ruby:
|
|
254
|
-
</p>
|
|
255
|
-
<ul>
|
|
256
|
-
<li>Camping — because it’s already done (thanks Why).
|
|
257
|
-
|
|
258
|
-
</li>
|
|
259
|
-
<li>Ruby on Rails — that’s where my bread is buttered right now.
|
|
260
|
-
|
|
261
|
-
</li>
|
|
262
|
-
<li>Nitro — Nitro folks have already hooked this up and started using it.
|
|
263
|
-
Nice.
|
|
264
|
-
|
|
265
|
-
</li>
|
|
266
|
-
<li>????? — Others people might be interested in.
|
|
267
|
-
|
|
268
|
-
</li>
|
|
269
|
-
</ul>
|
|
270
265
|
<h2>Contact</h2>
|
|
271
266
|
<p>
|
|
272
267
|
E-mail zedshaw at zedshaw.com and I’ll help. Comments about the API
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>File: cgi.rb</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="fileHeader">
|
|
50
|
+
<h1>cgi.rb</h1>
|
|
51
|
+
<table class="header-table">
|
|
52
|
+
<tr class="top-aligned-row">
|
|
53
|
+
<td><strong>Path:</strong></td>
|
|
54
|
+
<td>lib/mongrel/cgi.rb
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr class="top-aligned-row">
|
|
58
|
+
<td><strong>Last Update:</strong></td>
|
|
59
|
+
<td>Sat Mar 04 12:53:36 EST 2006</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
<!-- banner header -->
|
|
64
|
+
|
|
65
|
+
<div id="bodyContent">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<div id="contextContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<div id="requires-list">
|
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
|
74
|
+
|
|
75
|
+
<div class="name-list">
|
|
76
|
+
cgi
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<!-- if includes -->
|
|
87
|
+
|
|
88
|
+
<div id="section">
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<!-- if method_list -->
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<div id="validator-badges">
|
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
</body>
|
|
108
|
+
</html>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>File: command.rb</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="fileHeader">
|
|
50
|
+
<h1>command.rb</h1>
|
|
51
|
+
<table class="header-table">
|
|
52
|
+
<tr class="top-aligned-row">
|
|
53
|
+
<td><strong>Path:</strong></td>
|
|
54
|
+
<td>lib/mongrel/command.rb
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr class="top-aligned-row">
|
|
58
|
+
<td><strong>Last Update:</strong></td>
|
|
59
|
+
<td>Sun Mar 05 22:20:07 EST 2006</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
<!-- banner header -->
|
|
64
|
+
|
|
65
|
+
<div id="bodyContent">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<div id="contextContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<div id="requires-list">
|
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
|
74
|
+
|
|
75
|
+
<div class="name-list">
|
|
76
|
+
singleton
|
|
77
|
+
optparse
|
|
78
|
+
mongrel/plugins
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
<!-- if includes -->
|
|
89
|
+
|
|
90
|
+
<div id="section">
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<!-- if method_list -->
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<div id="validator-badges">
|
|
106
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
</body>
|
|
110
|
+
</html>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>File: handlers.rb</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="fileHeader">
|
|
50
|
+
<h1>handlers.rb</h1>
|
|
51
|
+
<table class="header-table">
|
|
52
|
+
<tr class="top-aligned-row">
|
|
53
|
+
<td><strong>Path:</strong></td>
|
|
54
|
+
<td>lib/mongrel/handlers.rb
|
|
55
|
+
</td>
|
|
56
|
+
</tr>
|
|
57
|
+
<tr class="top-aligned-row">
|
|
58
|
+
<td><strong>Last Update:</strong></td>
|
|
59
|
+
<td>Mon Feb 20 19:06:29 EST 2006</td>
|
|
60
|
+
</tr>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
<!-- banner header -->
|
|
64
|
+
|
|
65
|
+
<div id="bodyContent">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<div id="contextContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<!-- if includes -->
|
|
80
|
+
|
|
81
|
+
<div id="section">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<!-- if method_list -->
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
<div id="validator-badges">
|
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
</body>
|
|
101
|
+
</html>
|