mongrel 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,17 @@
|
|
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>process (Mongrel::HttpHandler)</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/handlers.rb, line 9</span>
|
14
|
+
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>)
|
15
|
+
10: <span class="ruby-keyword kw">end</span></pre>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -86,13 +86,13 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
89
|
+
<a href="#M000020">error?</a>
|
90
|
+
<a href="#M000019">execute</a>
|
91
|
+
<a href="#M000018">finish</a>
|
92
|
+
<a href="#M000021">finished?</a>
|
93
|
+
<a href="#M000016">new</a>
|
94
|
+
<a href="#M000022">nread</a>
|
95
|
+
<a href="#M000017">reset</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -114,12 +114,12 @@
|
|
114
114
|
<div id="methods">
|
115
115
|
<h3 class="section-bar">Public Class methods</h3>
|
116
116
|
|
117
|
-
<div id="method-
|
118
|
-
<a name="
|
117
|
+
<div id="method-M000016" class="method-detail">
|
118
|
+
<a name="M000016"></a>
|
119
119
|
|
120
120
|
<div class="method-heading">
|
121
|
-
<a href="HttpParser.src/
|
122
|
-
onclick="popupCode('HttpParser.src/
|
121
|
+
<a href="HttpParser.src/M000016.html" target="Code" class="method-signature"
|
122
|
+
onclick="popupCode('HttpParser.src/M000016.html');return false;">
|
123
123
|
<span class="method-name">parser.new → parser<br />
|
124
124
|
</span>
|
125
125
|
</a>
|
@@ -134,12 +134,12 @@ Creates a new parser.
|
|
134
134
|
|
135
135
|
<h3 class="section-bar">Public Instance methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000020" class="method-detail">
|
138
|
+
<a name="M000020"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="HttpParser.src/
|
142
|
-
onclick="popupCode('HttpParser.src/
|
141
|
+
<a href="HttpParser.src/M000020.html" target="Code" class="method-signature"
|
142
|
+
onclick="popupCode('HttpParser.src/M000020.html');return false;">
|
143
143
|
<span class="method-name">parser.error? → true/false<br />
|
144
144
|
</span>
|
145
145
|
</a>
|
@@ -152,12 +152,12 @@ Tells you whether the parser is in an error state.
|
|
152
152
|
</div>
|
153
153
|
</div>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000019" class="method-detail">
|
156
|
+
<a name="M000019"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="HttpParser.src/
|
160
|
-
onclick="popupCode('HttpParser.src/
|
159
|
+
<a href="HttpParser.src/M000019.html" target="Code" class="method-signature"
|
160
|
+
onclick="popupCode('HttpParser.src/M000019.html');return false;">
|
161
161
|
<span class="method-name">parser.execute(req_hash, data) → Integer<br />
|
162
162
|
</span>
|
163
163
|
</a>
|
@@ -180,12 +180,12 @@ handling block.
|
|
180
180
|
</div>
|
181
181
|
</div>
|
182
182
|
|
183
|
-
<div id="method-
|
184
|
-
<a name="
|
183
|
+
<div id="method-M000018" class="method-detail">
|
184
|
+
<a name="M000018"></a>
|
185
185
|
|
186
186
|
<div class="method-heading">
|
187
|
-
<a href="HttpParser.src/
|
188
|
-
onclick="popupCode('HttpParser.src/
|
187
|
+
<a href="HttpParser.src/M000018.html" target="Code" class="method-signature"
|
188
|
+
onclick="popupCode('HttpParser.src/M000018.html');return false;">
|
189
189
|
<span class="method-name">parser.finish → true/false<br />
|
190
190
|
</span>
|
191
191
|
</a>
|
@@ -199,12 +199,12 @@ You should call reset after finish it or bad things will happen.
|
|
199
199
|
</div>
|
200
200
|
</div>
|
201
201
|
|
202
|
-
<div id="method-
|
203
|
-
<a name="
|
202
|
+
<div id="method-M000021" class="method-detail">
|
203
|
+
<a name="M000021"></a>
|
204
204
|
|
205
205
|
<div class="method-heading">
|
206
|
-
<a href="HttpParser.src/
|
207
|
-
onclick="popupCode('HttpParser.src/
|
206
|
+
<a href="HttpParser.src/M000021.html" target="Code" class="method-signature"
|
207
|
+
onclick="popupCode('HttpParser.src/M000021.html');return false;">
|
208
208
|
<span class="method-name">parser.finished? → true/false<br />
|
209
209
|
</span>
|
210
210
|
</a>
|
@@ -217,12 +217,12 @@ Tells you whether the parser is finished or not and in a good state.
|
|
217
217
|
</div>
|
218
218
|
</div>
|
219
219
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
220
|
+
<div id="method-M000022" class="method-detail">
|
221
|
+
<a name="M000022"></a>
|
222
222
|
|
223
223
|
<div class="method-heading">
|
224
|
-
<a href="HttpParser.src/
|
225
|
-
onclick="popupCode('HttpParser.src/
|
224
|
+
<a href="HttpParser.src/M000022.html" target="Code" class="method-signature"
|
225
|
+
onclick="popupCode('HttpParser.src/M000022.html');return false;">
|
226
226
|
<span class="method-name">parser.nread → Integer<br />
|
227
227
|
</span>
|
228
228
|
</a>
|
@@ -237,12 +237,12 @@ execute is called.
|
|
237
237
|
</div>
|
238
238
|
</div>
|
239
239
|
|
240
|
-
<div id="method-
|
241
|
-
<a name="
|
240
|
+
<div id="method-M000017" class="method-detail">
|
241
|
+
<a name="M000017"></a>
|
242
242
|
|
243
243
|
<div class="method-heading">
|
244
|
-
<a href="HttpParser.src/
|
245
|
-
onclick="popupCode('HttpParser.src/
|
244
|
+
<a href="HttpParser.src/M000017.html" target="Code" class="method-signature"
|
245
|
+
onclick="popupCode('HttpParser.src/M000017.html');return false;">
|
246
246
|
<span class="method-name">parser.reset → nil<br />
|
247
247
|
</span>
|
248
248
|
</a>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -103,7 +103,7 @@ efficiently handling large file uploads.
|
|
103
103
|
<h3 class="section-bar">Methods</h3>
|
104
104
|
|
105
105
|
<div class="name-list">
|
106
|
-
<a href="#
|
106
|
+
<a href="#M000062">new</a>
|
107
107
|
</div>
|
108
108
|
</div>
|
109
109
|
|
@@ -143,12 +143,12 @@ efficiently handling large file uploads.
|
|
143
143
|
<div id="methods">
|
144
144
|
<h3 class="section-bar">Public Class methods</h3>
|
145
145
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
146
|
+
<div id="method-M000062" class="method-detail">
|
147
|
+
<a name="M000062"></a>
|
148
148
|
|
149
149
|
<div class="method-heading">
|
150
|
-
<a href="HttpRequest.src/
|
151
|
-
onclick="popupCode('HttpRequest.src/
|
150
|
+
<a href="HttpRequest.src/M000062.html" target="Code" class="method-signature"
|
151
|
+
onclick="popupCode('HttpRequest.src/M000062.html');return false;">
|
152
152
|
<span class="method-name">new</span><span class="method-args">(params, initial_body, socket)</span>
|
153
153
|
</a>
|
154
154
|
</div>
|
File without changes
|
@@ -94,7 +94,7 @@ The parameter to start is the response code—which <a
|
|
94
94
|
href="../Mongrel.html">Mongrel</a> will translate for you based on
|
95
95
|
HTTP_STATUS_CODES. The head parameter is how you write custom headers. The
|
96
96
|
out parameter is where you write your body. The default status code for <a
|
97
|
-
href="HttpResponse.html#
|
97
|
+
href="HttpResponse.html#M000039">HttpResponse.start</a> is 200 so the above
|
98
98
|
example is redundant.
|
99
99
|
</p>
|
100
100
|
<p>
|
@@ -131,13 +131,13 @@ will write this for you based on the out length.
|
|
131
131
|
<h3 class="section-bar">Methods</h3>
|
132
132
|
|
133
133
|
<div class="name-list">
|
134
|
-
<a href="#
|
135
|
-
<a href="#
|
136
|
-
<a href="#
|
137
|
-
<a href="#
|
138
|
-
<a href="#
|
139
|
-
<a href="#
|
140
|
-
<a href="#
|
134
|
+
<a href="#M000044">finished</a>
|
135
|
+
<a href="#M000038">new</a>
|
136
|
+
<a href="#M000040">reset</a>
|
137
|
+
<a href="#M000043">send_body</a>
|
138
|
+
<a href="#M000042">send_header</a>
|
139
|
+
<a href="#M000041">send_status</a>
|
140
|
+
<a href="#M000039">start</a>
|
141
141
|
</div>
|
142
142
|
</div>
|
143
143
|
|
@@ -192,12 +192,12 @@ will write this for you based on the out length.
|
|
192
192
|
<div id="methods">
|
193
193
|
<h3 class="section-bar">Public Class methods</h3>
|
194
194
|
|
195
|
-
<div id="method-
|
196
|
-
<a name="
|
195
|
+
<div id="method-M000038" class="method-detail">
|
196
|
+
<a name="M000038"></a>
|
197
197
|
|
198
198
|
<div class="method-heading">
|
199
|
-
<a href="HttpResponse.src/
|
200
|
-
onclick="popupCode('HttpResponse.src/
|
199
|
+
<a href="HttpResponse.src/M000038.html" target="Code" class="method-signature"
|
200
|
+
onclick="popupCode('HttpResponse.src/M000038.html');return false;">
|
201
201
|
<span class="method-name">new</span><span class="method-args">(socket)</span>
|
202
202
|
</a>
|
203
203
|
</div>
|
@@ -208,12 +208,12 @@ will write this for you based on the out length.
|
|
208
208
|
|
209
209
|
<h3 class="section-bar">Public Instance methods</h3>
|
210
210
|
|
211
|
-
<div id="method-
|
212
|
-
<a name="
|
211
|
+
<div id="method-M000044" class="method-detail">
|
212
|
+
<a name="M000044"></a>
|
213
213
|
|
214
214
|
<div class="method-heading">
|
215
|
-
<a href="HttpResponse.src/
|
216
|
-
onclick="popupCode('HttpResponse.src/
|
215
|
+
<a href="HttpResponse.src/M000044.html" target="Code" class="method-signature"
|
216
|
+
onclick="popupCode('HttpResponse.src/M000044.html');return false;">
|
217
217
|
<span class="method-name">finished</span><span class="method-args">()</span>
|
218
218
|
</a>
|
219
219
|
</div>
|
@@ -226,12 +226,12 @@ the proper format to make an HTTP/1.1 response.
|
|
226
226
|
</div>
|
227
227
|
</div>
|
228
228
|
|
229
|
-
<div id="method-
|
230
|
-
<a name="
|
229
|
+
<div id="method-M000040" class="method-detail">
|
230
|
+
<a name="M000040"></a>
|
231
231
|
|
232
232
|
<div class="method-heading">
|
233
|
-
<a href="HttpResponse.src/
|
234
|
-
onclick="popupCode('HttpResponse.src/
|
233
|
+
<a href="HttpResponse.src/M000040.html" target="Code" class="method-signature"
|
234
|
+
onclick="popupCode('HttpResponse.src/M000040.html');return false;">
|
235
235
|
<span class="method-name">reset</span><span class="method-args">()</span>
|
236
236
|
</a>
|
237
237
|
</div>
|
@@ -244,12 +244,12 @@ to write an alternative response.
|
|
244
244
|
</div>
|
245
245
|
</div>
|
246
246
|
|
247
|
-
<div id="method-
|
248
|
-
<a name="
|
247
|
+
<div id="method-M000043" class="method-detail">
|
248
|
+
<a name="M000043"></a>
|
249
249
|
|
250
250
|
<div class="method-heading">
|
251
|
-
<a href="HttpResponse.src/
|
252
|
-
onclick="popupCode('HttpResponse.src/
|
251
|
+
<a href="HttpResponse.src/M000043.html" target="Code" class="method-signature"
|
252
|
+
onclick="popupCode('HttpResponse.src/M000043.html');return false;">
|
253
253
|
<span class="method-name">send_body</span><span class="method-args">()</span>
|
254
254
|
</a>
|
255
255
|
</div>
|
@@ -258,12 +258,12 @@ to write an alternative response.
|
|
258
258
|
</div>
|
259
259
|
</div>
|
260
260
|
|
261
|
-
<div id="method-
|
262
|
-
<a name="
|
261
|
+
<div id="method-M000042" class="method-detail">
|
262
|
+
<a name="M000042"></a>
|
263
263
|
|
264
264
|
<div class="method-heading">
|
265
|
-
<a href="HttpResponse.src/
|
266
|
-
onclick="popupCode('HttpResponse.src/
|
265
|
+
<a href="HttpResponse.src/M000042.html" target="Code" class="method-signature"
|
266
|
+
onclick="popupCode('HttpResponse.src/M000042.html');return false;">
|
267
267
|
<span class="method-name">send_header</span><span class="method-args">()</span>
|
268
268
|
</a>
|
269
269
|
</div>
|
@@ -272,12 +272,12 @@ to write an alternative response.
|
|
272
272
|
</div>
|
273
273
|
</div>
|
274
274
|
|
275
|
-
<div id="method-
|
276
|
-
<a name="
|
275
|
+
<div id="method-M000041" class="method-detail">
|
276
|
+
<a name="M000041"></a>
|
277
277
|
|
278
278
|
<div class="method-heading">
|
279
|
-
<a href="HttpResponse.src/
|
280
|
-
onclick="popupCode('HttpResponse.src/
|
279
|
+
<a href="HttpResponse.src/M000041.html" target="Code" class="method-signature"
|
280
|
+
onclick="popupCode('HttpResponse.src/M000041.html');return false;">
|
281
281
|
<span class="method-name">send_status</span><span class="method-args">()</span>
|
282
282
|
</a>
|
283
283
|
</div>
|
@@ -286,12 +286,12 @@ to write an alternative response.
|
|
286
286
|
</div>
|
287
287
|
</div>
|
288
288
|
|
289
|
-
<div id="method-
|
290
|
-
<a name="
|
289
|
+
<div id="method-M000039" class="method-detail">
|
290
|
+
<a name="M000039"></a>
|
291
291
|
|
292
292
|
<div class="method-heading">
|
293
|
-
<a href="HttpResponse.src/
|
294
|
-
onclick="popupCode('HttpResponse.src/
|
293
|
+
<a href="HttpResponse.src/M000039.html" target="Code" class="method-signature"
|
294
|
+
onclick="popupCode('HttpResponse.src/M000039.html');return false;">
|
295
295
|
<span class="method-name">start</span><span class="method-args">(status=200) {|@header, @body| ...}</span>
|
296
296
|
</a>
|
297
297
|
</div>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -85,7 +85,7 @@ Mognrel::HttpParser and <a
|
|
85
85
|
href="URIClassifier.html">Mongrel::URIClassifier</a> make up the majority
|
86
86
|
of how the server functions. It’s a very simple class that just has a
|
87
87
|
thread accepting connections and a simple <a
|
88
|
-
href="HttpServer.html#
|
88
|
+
href="HttpServer.html#M000030">HttpServer.process_client</a> function to do
|
89
89
|
the heavy lifting with the IO and Ruby.
|
90
90
|
</p>
|
91
91
|
<p>
|
@@ -119,12 +119,12 @@ finally useful.
|
|
119
119
|
<h3 class="section-bar">Methods</h3>
|
120
120
|
|
121
121
|
<div class="name-list">
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
122
|
+
<a href="#M000029">new</a>
|
123
|
+
<a href="#M000030">process_client</a>
|
124
|
+
<a href="#M000032">register</a>
|
125
|
+
<a href="#M000031">run</a>
|
126
|
+
<a href="#M000034">stop</a>
|
127
|
+
<a href="#M000033">unregister</a>
|
128
128
|
</div>
|
129
129
|
</div>
|
130
130
|
|
@@ -159,12 +159,12 @@ finally useful.
|
|
159
159
|
<div id="methods">
|
160
160
|
<h3 class="section-bar">Public Class methods</h3>
|
161
161
|
|
162
|
-
<div id="method-
|
163
|
-
<a name="
|
162
|
+
<div id="method-M000029" class="method-detail">
|
163
|
+
<a name="M000029"></a>
|
164
164
|
|
165
165
|
<div class="method-heading">
|
166
|
-
<a href="HttpServer.src/
|
167
|
-
onclick="popupCode('HttpServer.src/
|
166
|
+
<a href="HttpServer.src/M000029.html" target="Code" class="method-signature"
|
167
|
+
onclick="popupCode('HttpServer.src/M000029.html');return false;">
|
168
168
|
<span class="method-name">new</span><span class="method-args">(host, port, num_processors=20, timeout=120)</span>
|
169
169
|
</a>
|
170
170
|
</div>
|
@@ -195,12 +195,12 @@ tuned your stuff of course).
|
|
195
195
|
|
196
196
|
<h3 class="section-bar">Public Instance methods</h3>
|
197
197
|
|
198
|
-
<div id="method-
|
199
|
-
<a name="
|
198
|
+
<div id="method-M000030" class="method-detail">
|
199
|
+
<a name="M000030"></a>
|
200
200
|
|
201
201
|
<div class="method-heading">
|
202
|
-
<a href="HttpServer.src/
|
203
|
-
onclick="popupCode('HttpServer.src/
|
202
|
+
<a href="HttpServer.src/M000030.html" target="Code" class="method-signature"
|
203
|
+
onclick="popupCode('HttpServer.src/M000030.html');return false;">
|
204
204
|
<span class="method-name">process_client</span><span class="method-args">(client)</span>
|
205
205
|
</a>
|
206
206
|
</div>
|
@@ -217,12 +217,12 @@ crack at it.
|
|
217
217
|
</div>
|
218
218
|
</div>
|
219
219
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
220
|
+
<div id="method-M000032" class="method-detail">
|
221
|
+
<a name="M000032"></a>
|
222
222
|
|
223
223
|
<div class="method-heading">
|
224
|
-
<a href="HttpServer.src/
|
225
|
-
onclick="popupCode('HttpServer.src/
|
224
|
+
<a href="HttpServer.src/M000032.html" target="Code" class="method-signature"
|
225
|
+
onclick="popupCode('HttpServer.src/M000032.html');return false;">
|
226
226
|
<span class="method-name">register</span><span class="method-args">(uri, handler)</span>
|
227
227
|
</a>
|
228
228
|
</div>
|
@@ -233,18 +233,18 @@ Simply registers a handler with the internal <a
|
|
233
233
|
href="URIClassifier.html">URIClassifier</a>. When the URI is found in the
|
234
234
|
prefix of a request then your handler’s HttpHandler::process method
|
235
235
|
is called. See <a
|
236
|
-
href="URIClassifier.html#
|
236
|
+
href="URIClassifier.html#M000048">Mongrel::URIClassifier#register</a> for
|
237
237
|
more information.
|
238
238
|
</p>
|
239
239
|
</div>
|
240
240
|
</div>
|
241
241
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
242
|
+
<div id="method-M000031" class="method-detail">
|
243
|
+
<a name="M000031"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="HttpServer.src/
|
247
|
-
onclick="popupCode('HttpServer.src/
|
246
|
+
<a href="HttpServer.src/M000031.html" target="Code" class="method-signature"
|
247
|
+
onclick="popupCode('HttpServer.src/M000031.html');return false;">
|
248
248
|
<span class="method-name">run</span><span class="method-args">()</span>
|
249
249
|
</a>
|
250
250
|
</div>
|
@@ -258,12 +258,12 @@ later.
|
|
258
258
|
</div>
|
259
259
|
</div>
|
260
260
|
|
261
|
-
<div id="method-
|
262
|
-
<a name="
|
261
|
+
<div id="method-M000034" class="method-detail">
|
262
|
+
<a name="M000034"></a>
|
263
263
|
|
264
264
|
<div class="method-heading">
|
265
|
-
<a href="HttpServer.src/
|
266
|
-
onclick="popupCode('HttpServer.src/
|
265
|
+
<a href="HttpServer.src/M000034.html" target="Code" class="method-signature"
|
266
|
+
onclick="popupCode('HttpServer.src/M000034.html');return false;">
|
267
267
|
<span class="method-name">stop</span><span class="method-args">()</span>
|
268
268
|
</a>
|
269
269
|
</div>
|
@@ -276,12 +276,12 @@ the request queue before finally exiting.
|
|
276
276
|
</div>
|
277
277
|
</div>
|
278
278
|
|
279
|
-
<div id="method-
|
280
|
-
<a name="
|
279
|
+
<div id="method-M000033" class="method-detail">
|
280
|
+
<a name="M000033"></a>
|
281
281
|
|
282
282
|
<div class="method-heading">
|
283
|
-
<a href="HttpServer.src/
|
284
|
-
onclick="popupCode('HttpServer.src/
|
283
|
+
<a href="HttpServer.src/M000033.html" target="Code" class="method-signature"
|
284
|
+
onclick="popupCode('HttpServer.src/M000033.html');return false;">
|
285
285
|
<span class="method-name">unregister</span><span class="method-args">(uri)</span>
|
286
286
|
</a>
|
287
287
|
</div>
|
@@ -289,7 +289,7 @@ the request queue before finally exiting.
|
|
289
289
|
<div class="method-description">
|
290
290
|
<p>
|
291
291
|
Removes any handler registered at the given URI. See <a
|
292
|
-
href="URIClassifier.html#
|
292
|
+
href="URIClassifier.html#M000049">Mongrel::URIClassifier#unregister</a> for
|
293
293
|
more information.
|
294
294
|
</p>
|
295
295
|
</div>
|