mongrel 0.3.10.1 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +14 -2
- data/bin/mongrel_rails +7 -1
- data/bin/mongrel_rails_service +4 -4
- data/lib/mongrel.rb +5 -6
- data/tools/rakehelp.rb +4 -2
- metadata +3 -134
- data/doc/rdoc/classes/Mongrel.html +0 -175
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +0 -381
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000057.html +0 -24
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000058.html +0 -47
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000059.html +0 -34
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000060.html +0 -27
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000061.html +0 -25
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000062.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000063.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000064.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000065.html +0 -19
- data/doc/rdoc/classes/Mongrel/Camping.html +0 -177
- data/doc/rdoc/classes/Mongrel/Camping.src/M000019.html +0 -22
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +0 -165
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000020.html +0 -18
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000021.html +0 -27
- data/doc/rdoc/classes/Mongrel/Command.html +0 -119
- data/doc/rdoc/classes/Mongrel/Command/Base.html +0 -332
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000006.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000007.html +0 -41
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000008.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000009.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000010.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000011.html +0 -22
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000012.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000013.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000014.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000015.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +0 -192
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000016.html +0 -20
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000017.html +0 -25
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000018.html +0 -46
- data/doc/rdoc/classes/Mongrel/Const.html +0 -352
- data/doc/rdoc/classes/Mongrel/DirHandler.html +0 -283
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000029.html +0 -20
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000030.html +0 -42
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000031.html +0 -40
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000032.html +0 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000033.html +0 -38
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000034.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +0 -171
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000066.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000067.html +0 -18
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +0 -185
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000041.html +0 -18
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000042.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +0 -146
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000043.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpParser.html +0 -271
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000022.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000023.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000024.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000025.html +0 -41
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000026.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000027.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000028.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +0 -177
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000068.html +0 -39
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +0 -321
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000044.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000045.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000046.html +0 -19
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000047.html +0 -19
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000048.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000049.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000050.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.html +0 -310
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000035.html +0 -36
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000036.html +0 -57
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000037.html +0 -48
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000038.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000039.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000040.html +0 -23
- data/doc/rdoc/classes/Mongrel/StopServer.html +0 -117
- data/doc/rdoc/classes/Mongrel/TimeoutWorker.html +0 -117
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +0 -301
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000051.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000052.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000053.html +0 -39
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000054.html +0 -51
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000055.html +0 -36
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000056.html +0 -83
- data/doc/rdoc/classes/RailsHandler.html +0 -245
- data/doc/rdoc/classes/RailsHandler.src/M000003.html +0 -22
- data/doc/rdoc/classes/RailsHandler.src/M000004.html +0 -48
- data/doc/rdoc/classes/RailsHandler.src/M000005.html +0 -23
- data/doc/rdoc/classes/TCPServer.html +0 -173
- data/doc/rdoc/classes/TCPServer.src/M000001.html +0 -19
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/COPYING.html +0 -756
- data/doc/rdoc/files/LICENSE.html +0 -756
- data/doc/rdoc/files/README.html +0 -302
- data/doc/rdoc/files/ext/http11/http11_c.html +0 -101
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +0 -108
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +0 -108
- data/doc/rdoc/files/lib/mongrel/command_rb.html +0 -111
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +0 -101
- data/doc/rdoc/files/lib/mongrel/init_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel_rb.html +0 -116
- data/doc/rdoc/fr_class_index.html +0 -47
- data/doc/rdoc/fr_file_index.html +0 -38
- data/doc/rdoc/fr_method_index.html +0 -94
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
@@ -1,34 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>send_cookies (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 89</span>
|
14
|
-
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">to</span>)
|
15
|
-
90: <span class="ruby-comment cmt"># convert the cookies based on the myriad of possible ways to set a cookie</span>
|
16
|
-
91: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
|
17
|
-
92: <span class="ruby-identifier">cookie</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
|
18
|
-
93: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cookie</span>
|
19
|
-
94: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
20
|
-
95: <span class="ruby-identifier">cookie</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">to</span>[<span class="ruby-value str">'Set-Cookie'</span>] = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span> }
|
21
|
-
96: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
|
22
|
-
97: <span class="ruby-identifier">cookie</span>.<span class="ruby-identifier">each_value</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">to</span>[<span class="ruby-value str">'Set-Cookie'</span>] = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span>}
|
23
|
-
98: <span class="ruby-keyword kw">else</span>
|
24
|
-
99: <span class="ruby-identifier">to</span>[<span class="ruby-value str">'Set-Cookie'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'cookie'</span>].<span class="ruby-identifier">to_s</span>
|
25
|
-
100: <span class="ruby-keyword kw">end</span>
|
26
|
-
101:
|
27
|
-
102: <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'cookie'</span>)
|
28
|
-
103:
|
29
|
-
104: <span class="ruby-comment cmt"># @output_cookies seems to never be used, but we'll process it just in case</span>
|
30
|
-
105: <span class="ruby-ivar">@output_cookies</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">to</span>[<span class="ruby-value str">'Set-Cookie'</span>] = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">to_s</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@output_cookies</span>
|
31
|
-
106: <span class="ruby-keyword kw">end</span>
|
32
|
-
107: <span class="ruby-keyword kw">end</span></pre>
|
33
|
-
</body>
|
34
|
-
</html>
|
@@ -1,27 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>out (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 113</span>
|
14
|
-
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">out</span>(<span class="ruby-identifier">options</span> = <span class="ruby-value str">"text/html"</span>)
|
15
|
-
114: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@out_called</span> <span class="ruby-comment cmt"># don't do this more than once</span>
|
16
|
-
115:
|
17
|
-
116: <span class="ruby-identifier">header</span>(<span class="ruby-identifier">options</span>)
|
18
|
-
117:
|
19
|
-
118: <span class="ruby-ivar">@response</span>.<span class="ruby-identifier">start</span> <span class="ruby-identifier">status</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">head</span>, <span class="ruby-identifier">out</span><span class="ruby-operator">|</span>
|
20
|
-
119: <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">head</span>)
|
21
|
-
120:
|
22
|
-
121: <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">head</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>}
|
23
|
-
122: <span class="ruby-identifier">out</span>.<span class="ruby-identifier">write</span>(<span class="ruby-keyword kw">yield</span> <span class="ruby-operator">||</span> <span class="ruby-value str">""</span>)
|
24
|
-
123: <span class="ruby-keyword kw">end</span>
|
25
|
-
124: <span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>status (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 129</span>
|
14
|
-
129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
15
|
-
130: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@status</span>
|
16
|
-
131: <span class="ruby-identifier">stat</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">"Status"</span>]
|
17
|
-
132: <span class="ruby-identifier">stat</span> = <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">' '</span>)[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">stat</span>
|
18
|
-
133:
|
19
|
-
134: <span class="ruby-ivar">@status</span> = <span class="ruby-identifier">stat</span> <span class="ruby-operator">||</span> <span class="ruby-value str">"200"</span>
|
20
|
-
135: <span class="ruby-keyword kw">end</span>
|
21
|
-
136:
|
22
|
-
137: <span class="ruby-ivar">@status</span>
|
23
|
-
138: <span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>args (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 141</span>
|
14
|
-
141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">args</span>
|
15
|
-
142: <span class="ruby-ivar">@args</span>
|
16
|
-
143: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>env_table (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 146</span>
|
14
|
-
146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_table</span>
|
15
|
-
147: <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">params</span>
|
16
|
-
148: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>stdinput (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 151</span>
|
14
|
-
151: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdinput</span>
|
15
|
-
152: <span class="ruby-ivar">@input</span>
|
16
|
-
153: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,19 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>stdoutput (Mongrel::CGIWrapper)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 156</span>
|
14
|
-
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdoutput</span>
|
15
|
-
157: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"WARNING: Your program is doing something not expected. Please tell Zed that stdoutput was used and what software you are running. Thanks."</span>
|
16
|
-
158: <span class="ruby-ivar">@response</span>.<span class="ruby-identifier">body</span>
|
17
|
-
159: <span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,177 +0,0 @@
|
|
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>Module: Mongrel::Camping</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="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Mongrel::Camping</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/mongrel/camping_rb.html">
|
59
|
-
lib/mongrel/camping.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
Support for the <a href="Camping.html">Camping</a> micro framework at <a
|
78
|
-
href="http://camping.rubyforge.org">camping.rubyforge.org</a> This
|
79
|
-
implements the unusually long Postamble that <a
|
80
|
-
href="Camping.html">Camping</a> usually needs and shrinks it down to just a
|
81
|
-
single line or two.
|
82
|
-
</p>
|
83
|
-
<p>
|
84
|
-
Your Postamble would now be:
|
85
|
-
</p>
|
86
|
-
<pre>
|
87
|
-
Mongrel::Camping::start("0.0.0.0",3001,"/tepee",Tepee).join
|
88
|
-
</pre>
|
89
|
-
<p>
|
90
|
-
If you wish to get fancier than this then you can use the <a
|
91
|
-
href="Camping/CampingHandler.html">Camping::CampingHandler</a> directly
|
92
|
-
instead and do your own wiring:
|
93
|
-
</p>
|
94
|
-
<pre>
|
95
|
-
h = Mongrel::HttpServer.new(server, port)
|
96
|
-
h.register(uri, CampingHandler.new(Tepee))
|
97
|
-
h.register("/favicon.ico", Mongrel::Error404Handler.new(""))
|
98
|
-
</pre>
|
99
|
-
<p>
|
100
|
-
I add the /favicon.ico since camping apps typically don’t have them
|
101
|
-
and it’s just annoying anyway.
|
102
|
-
</p>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div id="method-list">
|
110
|
-
<h3 class="section-bar">Methods</h3>
|
111
|
-
|
112
|
-
<div class="name-list">
|
113
|
-
<a href="#M000019">start</a>
|
114
|
-
</div>
|
115
|
-
</div>
|
116
|
-
|
117
|
-
</div>
|
118
|
-
|
119
|
-
|
120
|
-
<!-- if includes -->
|
121
|
-
|
122
|
-
<div id="section">
|
123
|
-
|
124
|
-
<div id="class-list">
|
125
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
126
|
-
|
127
|
-
Class <a href="Camping/CampingHandler.html" class="link">Mongrel::Camping::CampingHandler</a><br />
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<!-- if method_list -->
|
138
|
-
<div id="methods">
|
139
|
-
<h3 class="section-bar">Public Class methods</h3>
|
140
|
-
|
141
|
-
<div id="method-M000019" class="method-detail">
|
142
|
-
<a name="M000019"></a>
|
143
|
-
|
144
|
-
<div class="method-heading">
|
145
|
-
<a href="Camping.src/M000019.html" target="Code" class="method-signature"
|
146
|
-
onclick="popupCode('Camping.src/M000019.html');return false;">
|
147
|
-
<span class="method-name">start</span><span class="method-args">(server, port, uri, klass)</span>
|
148
|
-
</a>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
<div class="method-description">
|
152
|
-
<p>
|
153
|
-
This is a convenience method that wires up a <a
|
154
|
-
href="Camping/CampingHandler.html">CampingHandler</a> for your application
|
155
|
-
on a given port and uri. It’s pretty much all you need for a camping
|
156
|
-
application to work right.
|
157
|
-
</p>
|
158
|
-
<p>
|
159
|
-
It returns the <a href="HttpServer.html">Mongrel::HttpServer</a> which you
|
160
|
-
should either join or somehow manage. The thread is running when returned.
|
161
|
-
</p>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
|
169
|
-
</div>
|
170
|
-
|
171
|
-
|
172
|
-
<div id="validator-badges">
|
173
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
</body>
|
177
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
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>
|
7
|
-
<head>
|
8
|
-
<title>start (Mongrel::Camping)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/mongrel/camping.rb, line 56</span>
|
14
|
-
56: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Camping</span>.<span class="ruby-identifier">start</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">klass</span>)
|
15
|
-
57: <span class="ruby-identifier">h</span> = <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpServer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">server</span>, <span class="ruby-identifier">port</span>)
|
16
|
-
58: <span class="ruby-identifier">h</span>.<span class="ruby-identifier">register</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-constant">CampingHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">klass</span>))
|
17
|
-
59: <span class="ruby-identifier">h</span>.<span class="ruby-identifier">register</span>(<span class="ruby-value str">"/favicon.ico"</span>, <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">Error404Handler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">""</span>))
|
18
|
-
60: <span class="ruby-identifier">h</span>.<span class="ruby-identifier">run</span>
|
19
|
-
61: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">h</span>
|
20
|
-
62: <span class="ruby-keyword kw">end</span></pre>
|
21
|
-
</body>
|
22
|
-
</html>
|
@@ -1,165 +0,0 @@
|
|
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>Class: Mongrel::Camping::CampingHandler</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="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Mongrel::Camping::CampingHandler</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/mongrel/camping_rb.html">
|
59
|
-
lib/mongrel/camping.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="../HttpHandler.html">
|
69
|
-
Mongrel::HttpHandler
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
This is a specialized handler for <a href="../Camping.html">Camping</a>
|
86
|
-
applications that has them process the request and then translates the
|
87
|
-
results into something the <a
|
88
|
-
href="../HttpResponse.html">Mongrel::HttpResponse</a> needs.
|
89
|
-
</p>
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
<div id="method-list">
|
97
|
-
<h3 class="section-bar">Methods</h3>
|
98
|
-
|
99
|
-
<div class="name-list">
|
100
|
-
<a href="#M000020">new</a>
|
101
|
-
<a href="#M000021">process</a>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
|
105
|
-
</div>
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if includes -->
|
109
|
-
|
110
|
-
<div id="section">
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<!-- if method_list -->
|
120
|
-
<div id="methods">
|
121
|
-
<h3 class="section-bar">Public Class methods</h3>
|
122
|
-
|
123
|
-
<div id="method-M000020" class="method-detail">
|
124
|
-
<a name="M000020"></a>
|
125
|
-
|
126
|
-
<div class="method-heading">
|
127
|
-
<a href="CampingHandler.src/M000020.html" target="Code" class="method-signature"
|
128
|
-
onclick="popupCode('CampingHandler.src/M000020.html');return false;">
|
129
|
-
<span class="method-name">new</span><span class="method-args">(klass)</span>
|
130
|
-
</a>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="method-description">
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
138
|
-
|
139
|
-
<div id="method-M000021" class="method-detail">
|
140
|
-
<a name="M000021"></a>
|
141
|
-
|
142
|
-
<div class="method-heading">
|
143
|
-
<a href="CampingHandler.src/M000021.html" target="Code" class="method-signature"
|
144
|
-
onclick="popupCode('CampingHandler.src/M000021.html');return false;">
|
145
|
-
<span class="method-name">process</span><span class="method-args">(request, response)</span>
|
146
|
-
</a>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method-description">
|
150
|
-
</div>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
|
154
|
-
</div>
|
155
|
-
|
156
|
-
|
157
|
-
</div>
|
158
|
-
|
159
|
-
|
160
|
-
<div id="validator-badges">
|
161
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
162
|
-
</div>
|
163
|
-
|
164
|
-
</body>
|
165
|
-
</html>
|