mongrel 0.3.13 → 0.3.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/Rakefile +1 -1
  2. data/bin/mongrel_rails +1 -1
  3. data/doc/rdoc/classes/Mongrel.html +1 -0
  4. data/doc/rdoc/classes/Mongrel/CGIWrapper.html +49 -49
  5. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000098.html +11 -21
  6. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000099.html +34 -14
  7. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000100.html +21 -12
  8. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +14 -5
  9. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +12 -5
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +5 -5
  11. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +5 -6
  12. data/doc/rdoc/classes/Mongrel/{URIClassifier.src/M000088.html → CGIWrapper.src/M000105.html} +5 -5
  13. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +19 -0
  14. data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
  15. data/doc/rdoc/classes/Mongrel/Camping.src/{M000046.html → M000047.html} +0 -0
  16. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
  17. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000048.html +5 -38
  18. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +51 -0
  19. data/doc/rdoc/classes/Mongrel/Command/Base.html +65 -65
  20. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +11 -29
  21. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +29 -5
  22. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +5 -5
  23. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +5 -5
  24. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +5 -5
  25. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +5 -9
  26. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +9 -5
  27. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +5 -5
  28. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +5 -5
  29. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +5 -11
  30. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +11 -11
  31. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +11 -5
  32. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +18 -0
  33. data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
  34. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000038.html +7 -12
  35. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +12 -37
  36. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +50 -0
  37. data/doc/rdoc/classes/Mongrel/Configurator.html +143 -107
  38. data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +16 -7
  39. data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +18 -7
  40. data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +7 -10
  41. data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +7 -5
  42. data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +10 -21
  43. data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +5 -6
  44. data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +21 -17
  45. data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +6 -20
  46. data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +17 -5
  47. data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +20 -11
  48. data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +5 -6
  49. data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +11 -9
  50. data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +6 -12
  51. data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +5 -5
  52. data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +9 -22
  53. data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +12 -5
  54. data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +5 -20
  55. data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +22 -5
  56. data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +18 -0
  57. data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +33 -0
  58. data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +18 -0
  59. data/doc/rdoc/classes/Mongrel/Const.html +6 -1
  60. data/doc/rdoc/classes/Mongrel/DeflateFilter.html +10 -10
  61. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000094.html → M000096.html} +5 -5
  62. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000095.html → M000097.html} +14 -14
  63. data/doc/rdoc/classes/Mongrel/DirHandler.html +31 -31
  64. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000057.html +8 -30
  65. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +30 -29
  66. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +29 -50
  67. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +50 -26
  68. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +26 -5
  69. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +18 -0
  70. data/doc/rdoc/classes/Mongrel/Error404Handler.html +10 -10
  71. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000125.html → M000128.html} +4 -4
  72. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000126.html → M000129.html} +4 -4
  73. data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
  74. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000070.html +5 -5
  75. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000071.html +18 -0
  76. data/doc/rdoc/classes/Mongrel/HttpHandler.html +31 -9
  77. data/doc/rdoc/classes/Mongrel/{URIClassifier.src/M000089.html → HttpHandler.src/M000076.html} +4 -5
  78. data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000075.html → M000077.html} +3 -3
  79. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +30 -15
  80. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +4 -6
  81. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +6 -4
  82. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +17 -0
  83. data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
  84. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000050.html +5 -6
  85. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000051.html +7 -7
  86. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000052.html +7 -37
  87. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000053.html +37 -5
  88. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000054.html +5 -5
  89. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000055.html +5 -6
  90. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000049.html → M000056.html} +6 -6
  91. data/doc/rdoc/classes/Mongrel/HttpRequest.html +20 -20
  92. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000130.html → M000135.html} +38 -38
  93. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000131.html → M000136.html} +6 -6
  94. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000132.html → M000137.html} +6 -6
  95. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000133.html → M000138.html} +18 -18
  96. data/doc/rdoc/classes/Mongrel/HttpResponse.html +61 -61
  97. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +12 -12
  98. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +7 -9
  99. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +12 -9
  100. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +9 -9
  101. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +9 -18
  102. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +9 -8
  103. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +18 -7
  104. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +8 -7
  105. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +7 -7
  106. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +7 -5
  107. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +20 -0
  108. data/doc/rdoc/classes/Mongrel/{HeaderOut.src/M000069.html → HttpResponse.src/M000089.html} +5 -5
  109. data/doc/rdoc/classes/Mongrel/HttpServer.html +38 -38
  110. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +12 -70
  111. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +76 -13
  112. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +13 -50
  113. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +50 -21
  114. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +20 -4
  115. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +5 -9
  116. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +22 -0
  117. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +15 -15
  118. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000041.html +26 -12
  119. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +12 -13
  120. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +26 -0
  121. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +15 -15
  122. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000044.html +9 -38
  123. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +38 -10
  124. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +23 -0
  125. data/doc/rdoc/classes/Mongrel/RedirectHandler.html +187 -0
  126. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000133.html +22 -0
  127. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000134.html +27 -0
  128. data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +16 -16
  129. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000127.html → M000130.html} +10 -10
  130. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000128.html → M000131.html} +10 -10
  131. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000129.html → M000132.html} +4 -4
  132. data/doc/rdoc/classes/Mongrel/StatusHandler.html +20 -20
  133. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000072.html +5 -11
  134. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000073.html +11 -29
  135. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +29 -7
  136. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +20 -0
  137. data/doc/rdoc/classes/Mongrel/URIClassifier.html +30 -30
  138. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000090.html +5 -26
  139. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html +5 -38
  140. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +18 -15
  141. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +25 -57
  142. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +36 -0
  143. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000095.html +83 -0
  144. data/doc/rdoc/classes/RequestLog/Access.html +5 -5
  145. data/doc/rdoc/classes/RequestLog/Access.src/{M000134.html → M000139.html} +0 -0
  146. data/doc/rdoc/classes/RequestLog/Files.html +5 -5
  147. data/doc/rdoc/classes/RequestLog/Files.src/{M000135.html → M000140.html} +0 -0
  148. data/doc/rdoc/classes/RequestLog/Objects.html +5 -5
  149. data/doc/rdoc/classes/RequestLog/Objects.src/{M000137.html → M000142.html} +0 -0
  150. data/doc/rdoc/classes/RequestLog/Params.html +5 -5
  151. data/doc/rdoc/classes/RequestLog/Params.src/{M000138.html → M000143.html} +0 -0
  152. data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
  153. data/doc/rdoc/classes/RequestLog/Threads.src/{M000136.html → M000141.html} +0 -0
  154. data/doc/rdoc/created.rid +1 -1
  155. data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
  156. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +1 -1
  157. data/doc/rdoc/files/lib/mongrel_rb.html +1 -1
  158. data/doc/rdoc/fr_class_index.html +1 -0
  159. data/doc/rdoc/fr_method_index.html +124 -119
  160. data/examples/simpletest.rb +2 -0
  161. data/ext/http11/http11.c +1 -1
  162. data/lib/mongrel.rb +30 -5
  163. data/lib/mongrel/handlers.rb +57 -2
  164. data/test/test_redirect_handler.rb +40 -0
  165. metadata +47 -38
  166. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000096.html +0 -24
  167. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000097.html +0 -47
  168. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000047.html +0 -18
  169. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000024.html +0 -24
  170. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000037.html +0 -20
  171. data/doc/rdoc/classes/Mongrel/Configurator.src/M000105.html +0 -29
  172. data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +0 -31
  173. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000056.html +0 -21
  174. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +0 -25
  175. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000077.html +0 -20
  176. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000062.html +0 -25
  177. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000040.html +0 -39
  178. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000043.html +0 -22
  179. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000071.html +0 -18
data/Rakefile CHANGED
@@ -53,7 +53,7 @@ task :site => [:site_webgen, :site_rdoc, :site_coverage, :site_projects_rdoc]
53
53
  setup_extension("http11", "http11")
54
54
 
55
55
  name="mongrel"
56
- version="0.3.13"
56
+ version="0.3.13.1"
57
57
 
58
58
  setup_gem(name, version) do |spec|
59
59
  spec.summary = "A small fast HTTP library and server that runs Rails, Camping, and Nitro apps."
@@ -70,7 +70,7 @@ class Start < GemPlugin::Plugin "/commands"
70
70
  end
71
71
 
72
72
  if @config_file
73
- STDERR.puts "** Loading settings from #{@config_file} (they override command line)." unless defaults[:daemon]
73
+ STDERR.puts "** Loading settings from #{@config_file} (they override command line)." unless settings[:daemon]
74
74
  conf = YAML.load_file(@config_file)
75
75
  settings = settings.merge! conf
76
76
  end
@@ -155,6 +155,7 @@ Class <a href="Mongrel/HttpParserError.html" class="link">Mongrel::HttpParserErr
155
155
  Class <a href="Mongrel/HttpRequest.html" class="link">Mongrel::HttpRequest</a><br />
156
156
  Class <a href="Mongrel/HttpResponse.html" class="link">Mongrel::HttpResponse</a><br />
157
157
  Class <a href="Mongrel/HttpServer.html" class="link">Mongrel::HttpServer</a><br />
158
+ Class <a href="Mongrel/RedirectHandler.html" class="link">Mongrel::RedirectHandler</a><br />
158
159
  Class <a href="Mongrel/StatisticsFilter.html" class="link">Mongrel::StatisticsFilter</a><br />
159
160
  Class <a href="Mongrel/StatusHandler.html" class="link">Mongrel::StatusHandler</a><br />
160
161
  Class <a href="Mongrel/StopServer.html" class="link">Mongrel::StopServer</a><br />
@@ -104,7 +104,7 @@ with:
104
104
  <p>
105
105
  Which is ugly but does the job. Feel free to write a <a
106
106
  href="Rails.html">Rails</a> helper for that. Refer to <a
107
- href="DirHandler.html#M000057">DirHandler#can_serve</a> for more
107
+ href="DirHandler.html#M000058">DirHandler#can_serve</a> for more
108
108
  information on this.
109
109
  </p>
110
110
 
@@ -117,15 +117,15 @@ information on this.
117
117
  <h3 class="section-bar">Methods</h3>
118
118
 
119
119
  <div class="name-list">
120
- <a href="#M000101">args</a>&nbsp;&nbsp;
121
- <a href="#M000102">env_table</a>&nbsp;&nbsp;
122
- <a href="#M000097">header</a>&nbsp;&nbsp;
123
- <a href="#M000096">new</a>&nbsp;&nbsp;
124
- <a href="#M000099">out</a>&nbsp;&nbsp;
125
- <a href="#M000098">send_cookies</a>&nbsp;&nbsp;
126
- <a href="#M000100">status</a>&nbsp;&nbsp;
127
- <a href="#M000103">stdinput</a>&nbsp;&nbsp;
128
- <a href="#M000104">stdoutput</a>&nbsp;&nbsp;
120
+ <a href="#M000103">args</a>&nbsp;&nbsp;
121
+ <a href="#M000104">env_table</a>&nbsp;&nbsp;
122
+ <a href="#M000099">header</a>&nbsp;&nbsp;
123
+ <a href="#M000098">new</a>&nbsp;&nbsp;
124
+ <a href="#M000101">out</a>&nbsp;&nbsp;
125
+ <a href="#M000100">send_cookies</a>&nbsp;&nbsp;
126
+ <a href="#M000102">status</a>&nbsp;&nbsp;
127
+ <a href="#M000105">stdinput</a>&nbsp;&nbsp;
128
+ <a href="#M000106">stdoutput</a>&nbsp;&nbsp;
129
129
  </div>
130
130
  </div>
131
131
 
@@ -149,7 +149,7 @@ information on this.
149
149
  <td width="3em">&nbsp;</td>
150
150
  <td class="context-item-desc">
151
151
  these are stripped out of any keys passed to <a
152
- href="CGIWrapper.html#M000097">CGIWrapper.header</a> function
152
+ href="CGIWrapper.html#M000099">CGIWrapper.header</a> function
153
153
 
154
154
  </td>
155
155
  </tr>
@@ -189,12 +189,12 @@ href="CGIWrapper.html#M000097">CGIWrapper.header</a> function
189
189
  <div id="methods">
190
190
  <h3 class="section-bar">Public Class methods</h3>
191
191
 
192
- <div id="method-M000096" class="method-detail">
193
- <a name="M000096"></a>
192
+ <div id="method-M000098" class="method-detail">
193
+ <a name="M000098"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="CGIWrapper.src/M000096.html" target="Code" class="method-signature"
197
- onclick="popupCode('CGIWrapper.src/M000096.html');return false;">
196
+ <a href="CGIWrapper.src/M000098.html" target="Code" class="method-signature"
197
+ onclick="popupCode('CGIWrapper.src/M000098.html');return false;">
198
198
  <span class="method-name">new</span><span class="method-args">(request, response, *args)</span>
199
199
  </a>
200
200
  </div>
@@ -212,12 +212,12 @@ href="../Mongrel.html">Mongrel</a>&#8217;s view of the world.
212
212
 
213
213
  <h3 class="section-bar">Public Instance methods</h3>
214
214
 
215
- <div id="method-M000101" class="method-detail">
216
- <a name="M000101"></a>
215
+ <div id="method-M000103" class="method-detail">
216
+ <a name="M000103"></a>
217
217
 
218
218
  <div class="method-heading">
219
- <a href="CGIWrapper.src/M000101.html" target="Code" class="method-signature"
220
- onclick="popupCode('CGIWrapper.src/M000101.html');return false;">
219
+ <a href="CGIWrapper.src/M000103.html" target="Code" class="method-signature"
220
+ onclick="popupCode('CGIWrapper.src/M000103.html');return false;">
221
221
  <span class="method-name">args</span><span class="method-args">()</span>
222
222
  </a>
223
223
  </div>
@@ -229,30 +229,30 @@ Used to wrap the normal args variable used inside CGI.
229
229
  </div>
230
230
  </div>
231
231
 
232
- <div id="method-M000102" class="method-detail">
233
- <a name="M000102"></a>
232
+ <div id="method-M000104" class="method-detail">
233
+ <a name="M000104"></a>
234
234
 
235
235
  <div class="method-heading">
236
- <a href="CGIWrapper.src/M000102.html" target="Code" class="method-signature"
237
- onclick="popupCode('CGIWrapper.src/M000102.html');return false;">
236
+ <a href="CGIWrapper.src/M000104.html" target="Code" class="method-signature"
237
+ onclick="popupCode('CGIWrapper.src/M000104.html');return false;">
238
238
  <span class="method-name">env_table</span><span class="method-args">()</span>
239
239
  </a>
240
240
  </div>
241
241
 
242
242
  <div class="method-description">
243
243
  <p>
244
- Used to wrap the normal <a href="CGIWrapper.html#M000102">env_table</a>
244
+ Used to wrap the normal <a href="CGIWrapper.html#M000104">env_table</a>
245
245
  variable used inside CGI.
246
246
  </p>
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000097" class="method-detail">
251
- <a name="M000097"></a>
250
+ <div id="method-M000099" class="method-detail">
251
+ <a name="M000099"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="CGIWrapper.src/M000097.html" target="Code" class="method-signature"
255
- onclick="popupCode('CGIWrapper.src/M000097.html');return false;">
254
+ <a href="CGIWrapper.src/M000099.html" target="Code" class="method-signature"
255
+ onclick="popupCode('CGIWrapper.src/M000099.html');return false;">
256
256
  <span class="method-name">header</span><span class="method-args">(options = &quot;text/html&quot;)</span>
257
257
  </a>
258
258
  </div>
@@ -271,12 +271,12 @@ output.
271
271
  </div>
272
272
  </div>
273
273
 
274
- <div id="method-M000099" class="method-detail">
275
- <a name="M000099"></a>
274
+ <div id="method-M000101" class="method-detail">
275
+ <a name="M000101"></a>
276
276
 
277
277
  <div class="method-heading">
278
- <a href="CGIWrapper.src/M000099.html" target="Code" class="method-signature"
279
- onclick="popupCode('CGIWrapper.src/M000099.html');return false;">
278
+ <a href="CGIWrapper.src/M000101.html" target="Code" class="method-signature"
279
+ onclick="popupCode('CGIWrapper.src/M000101.html');return false;">
280
280
  <span class="method-name">out</span><span class="method-args">(options = &quot;text/html&quot;) {||| &quot;&quot;)| ...}</span>
281
281
  </a>
282
282
  </div>
@@ -288,17 +288,17 @@ So, we just reuse header and then finalize the <a
288
288
  href="HttpResponse.html">HttpResponse</a> the right way. Status is taken
289
289
  from the various options and converted to what <a
290
290
  href="../Mongrel.html">Mongrel</a> needs via the <a
291
- href="CGIWrapper.html#M000100">CGIWrapper.status</a> function.
291
+ href="CGIWrapper.html#M000102">CGIWrapper.status</a> function.
292
292
  </p>
293
293
  </div>
294
294
  </div>
295
295
 
296
- <div id="method-M000098" class="method-detail">
297
- <a name="M000098"></a>
296
+ <div id="method-M000100" class="method-detail">
297
+ <a name="M000100"></a>
298
298
 
299
299
  <div class="method-heading">
300
- <a href="CGIWrapper.src/M000098.html" target="Code" class="method-signature"
301
- onclick="popupCode('CGIWrapper.src/M000098.html');return false;">
300
+ <a href="CGIWrapper.src/M000100.html" target="Code" class="method-signature"
301
+ onclick="popupCode('CGIWrapper.src/M000100.html');return false;">
302
302
  <span class="method-name">send_cookies</span><span class="method-args">(to)</span>
303
303
  </a>
304
304
  </div>
@@ -314,12 +314,12 @@ the options. If cookie is an Array or Hash then it sends those on with
314
314
  </div>
315
315
  </div>
316
316
 
317
- <div id="method-M000100" class="method-detail">
318
- <a name="M000100"></a>
317
+ <div id="method-M000102" class="method-detail">
318
+ <a name="M000102"></a>
319
319
 
320
320
  <div class="method-heading">
321
- <a href="CGIWrapper.src/M000100.html" target="Code" class="method-signature"
322
- onclick="popupCode('CGIWrapper.src/M000100.html');return false;">
321
+ <a href="CGIWrapper.src/M000102.html" target="Code" class="method-signature"
322
+ onclick="popupCode('CGIWrapper.src/M000102.html');return false;">
323
323
  <span class="method-name">status</span><span class="method-args">()</span>
324
324
  </a>
325
325
  </div>
@@ -333,12 +333,12 @@ status message in the status we have to do a bit of parsing.
333
333
  </div>
334
334
  </div>
335
335
 
336
- <div id="method-M000103" class="method-detail">
337
- <a name="M000103"></a>
336
+ <div id="method-M000105" class="method-detail">
337
+ <a name="M000105"></a>
338
338
 
339
339
  <div class="method-heading">
340
- <a href="CGIWrapper.src/M000103.html" target="Code" class="method-signature"
341
- onclick="popupCode('CGIWrapper.src/M000103.html');return false;">
340
+ <a href="CGIWrapper.src/M000105.html" target="Code" class="method-signature"
341
+ onclick="popupCode('CGIWrapper.src/M000105.html');return false;">
342
342
  <span class="method-name">stdinput</span><span class="method-args">()</span>
343
343
  </a>
344
344
  </div>
@@ -350,12 +350,12 @@ Used to wrap the normal stdinput variable used inside CGI.
350
350
  </div>
351
351
  </div>
352
352
 
353
- <div id="method-M000104" class="method-detail">
354
- <a name="M000104"></a>
353
+ <div id="method-M000106" class="method-detail">
354
+ <a name="M000106"></a>
355
355
 
356
356
  <div class="method-heading">
357
- <a href="CGIWrapper.src/M000104.html" target="Code" class="method-signature"
358
- onclick="popupCode('CGIWrapper.src/M000104.html');return false;">
357
+ <a href="CGIWrapper.src/M000106.html" target="Code" class="method-signature"
358
+ onclick="popupCode('CGIWrapper.src/M000106.html');return false;">
359
359
  <span class="method-name">stdoutput</span><span class="method-args">()</span>
360
360
  </a>
361
361
  </div>
@@ -5,30 +5,20 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>send_cookies (Mongrel::CGIWrapper)</title>
8
+ <title>new (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 107</span>
14
- 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">to</span>)
15
- 108: <span class="ruby-comment cmt"># convert the cookies based on the myriad of possible ways to set a cookie</span>
16
- 109: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
17
- 110: <span class="ruby-identifier">cookie</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
18
- 111: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cookie</span>
19
- 112: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
20
- 113: <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
- 114: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
22
- 115: <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
- 116: <span class="ruby-keyword kw">else</span>
24
- 117: <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
- 118: <span class="ruby-keyword kw">end</span>
26
- 119:
27
- 120: <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'cookie'</span>)
28
- 121:
29
- 122: <span class="ruby-comment cmt"># @output_cookies seems to never be used, but we'll process it just in case</span>
30
- 123: <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
- 124: <span class="ruby-keyword kw">end</span>
32
- 125: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 52</span>
14
+ 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">request</span>, <span class="ruby-identifier">response</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
15
+ 53: <span class="ruby-ivar">@request</span> = <span class="ruby-identifier">request</span>
16
+ 54: <span class="ruby-ivar">@response</span> = <span class="ruby-identifier">response</span>
17
+ 55: <span class="ruby-ivar">@args</span> = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
18
+ 56: <span class="ruby-ivar">@input</span> = <span class="ruby-identifier">request</span>.<span class="ruby-identifier">body</span>
19
+ 57: <span class="ruby-ivar">@head</span> = {}
20
+ 58: <span class="ruby-ivar">@out_called</span> = <span class="ruby-keyword kw">false</span>
21
+ 59: <span class="ruby-keyword kw">super</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
22
+ 60: <span class="ruby-keyword kw">end</span></pre>
33
23
  </body>
34
24
  </html>
@@ -5,23 +5,43 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>out (Mongrel::CGIWrapper)</title>
8
+ <title>header (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 131</span>
14
- 131: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">out</span>(<span class="ruby-identifier">options</span> = <span class="ruby-value str">&quot;text/html&quot;</span>)
15
- 132: <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
- 133:
17
- 134: <span class="ruby-identifier">header</span>(<span class="ruby-identifier">options</span>)
18
- 135:
19
- 136: <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
- 137: <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">head</span>)
21
- 138:
22
- 139: <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
- 140: <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">&quot;&quot;</span>)
24
- 141: <span class="ruby-keyword kw">end</span>
25
- 142: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 69</span>
14
+ 69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">header</span>(<span class="ruby-identifier">options</span> = <span class="ruby-value str">&quot;text/html&quot;</span>)
15
+ 70: <span class="ruby-comment cmt"># if they pass in a string then just write the Content-Type</span>
16
+ 71: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span>
17
+ 72: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Content-Type'</span>] = <span class="ruby-identifier">options</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Content-Type'</span>]
18
+ 73: <span class="ruby-keyword kw">else</span>
19
+ 74: <span class="ruby-comment cmt"># convert the given options into what Mongrel wants</span>
20
+ 75: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Content-Type'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'type'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;text/html&quot;</span>
21
+ 76: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Content-Type'</span>] <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;; charset=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'charset'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-value str">&quot;charset&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'charset'</span>]
22
+ 77:
23
+ 78: <span class="ruby-comment cmt"># setup date only if they use nph</span>
24
+ 79: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Date'</span>] = <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">rfc1123_date</span>(<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'nph'</span>]
25
+ 80:
26
+ 81: <span class="ruby-comment cmt"># setup the server to use the default or what they set</span>
27
+ 82: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Server'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'server'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">env_table</span>[<span class="ruby-value str">'SERVER_SOFTWARE'</span>]
28
+ 83:
29
+ 84: <span class="ruby-comment cmt"># remaining possible options they can give</span>
30
+ 85: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Status'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'status'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'status'</span>]
31
+ 86: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Content-Language'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'language'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'language'</span>]
32
+ 87: <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'Expires'</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value str">'expires'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">'expires'</span>]
33
+ 88:
34
+ 89: <span class="ruby-comment cmt"># drop the keys we don't want anymore</span>
35
+ 90: <span class="ruby-constant">REMOVED_KEYS</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">k</span>) }
36
+ 91:
37
+ 92: <span class="ruby-comment cmt"># finally just convert the rest raw (which puts 'cookie' directly)</span>
38
+ 93: <span class="ruby-comment cmt"># 'cookie' is translated later as we write the header out</span>
39
+ 94: <span class="ruby-identifier">options</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-ivar">@head</span>[<span class="ruby-identifier">k</span>] = <span class="ruby-identifier">v</span>}
40
+ 95: <span class="ruby-keyword kw">end</span>
41
+ 96:
42
+ 97: <span class="ruby-comment cmt"># doing this fakes out the cgi library to think the headers are empty</span>
43
+ 98: <span class="ruby-comment cmt"># we then do the real headers in the out function call later</span>
44
+ 99: <span class="ruby-value str">&quot;&quot;</span>
45
+ 100: <span class="ruby-keyword kw">end</span></pre>
26
46
  </body>
27
47
  </html>
@@ -5,21 +5,30 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>status (Mongrel::CGIWrapper)</title>
8
+ <title>send_cookies (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 147</span>
14
- 147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
15
- 148: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@status</span>
16
- 149: <span class="ruby-identifier">stat</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">&quot;Status&quot;</span>]
17
- 150: <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
- 151:
19
- 152: <span class="ruby-ivar">@status</span> = <span class="ruby-identifier">stat</span> <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;200&quot;</span>
20
- 153: <span class="ruby-keyword kw">end</span>
21
- 154:
22
- 155: <span class="ruby-ivar">@status</span>
23
- 156: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 107</span>
14
+ 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">to</span>)
15
+ 108: <span class="ruby-comment cmt"># convert the cookies based on the myriad of possible ways to set a cookie</span>
16
+ 109: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
17
+ 110: <span class="ruby-identifier">cookie</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">'cookie'</span>]
18
+ 111: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cookie</span>
19
+ 112: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
20
+ 113: <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
+ 114: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
22
+ 115: <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
+ 116: <span class="ruby-keyword kw">else</span>
24
+ 117: <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
+ 118: <span class="ruby-keyword kw">end</span>
26
+ 119:
27
+ 120: <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'cookie'</span>)
28
+ 121:
29
+ 122: <span class="ruby-comment cmt"># @output_cookies seems to never be used, but we'll process it just in case</span>
30
+ 123: <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
+ 124: <span class="ruby-keyword kw">end</span>
32
+ 125: <span class="ruby-keyword kw">end</span></pre>
24
33
  </body>
25
34
  </html>
@@ -5,14 +5,23 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>args (Mongrel::CGIWrapper)</title>
8
+ <title>out (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 159</span>
14
- 159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">args</span>
15
- 160: <span class="ruby-ivar">@args</span>
16
- 161: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 131</span>
14
+ 131: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">out</span>(<span class="ruby-identifier">options</span> = <span class="ruby-value str">&quot;text/html&quot;</span>)
15
+ 132: <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
+ 133:
17
+ 134: <span class="ruby-identifier">header</span>(<span class="ruby-identifier">options</span>)
18
+ 135:
19
+ 136: <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
+ 137: <span class="ruby-identifier">send_cookies</span>(<span class="ruby-identifier">head</span>)
21
+ 138:
22
+ 139: <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
+ 140: <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">&quot;&quot;</span>)
24
+ 141: <span class="ruby-keyword kw">end</span>
25
+ 142: <span class="ruby-keyword kw">end</span></pre>
17
26
  </body>
18
27
  </html>
@@ -5,14 +5,21 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>env_table (Mongrel::CGIWrapper)</title>
8
+ <title>status (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 164</span>
14
- 164: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_table</span>
15
- 165: <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">params</span>
16
- 166: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 147</span>
14
+ 147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
15
+ 148: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@status</span>
16
+ 149: <span class="ruby-identifier">stat</span> = <span class="ruby-ivar">@head</span>[<span class="ruby-value str">&quot;Status&quot;</span>]
17
+ 150: <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
+ 151:
19
+ 152: <span class="ruby-ivar">@status</span> = <span class="ruby-identifier">stat</span> <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;200&quot;</span>
20
+ 153: <span class="ruby-keyword kw">end</span>
21
+ 154:
22
+ 155: <span class="ruby-ivar">@status</span>
23
+ 156: <span class="ruby-keyword kw">end</span></pre>
17
24
  </body>
18
25
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>stdinput (Mongrel::CGIWrapper)</title>
8
+ <title>args (Mongrel::CGIWrapper)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 169</span>
14
- 169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdinput</span>
15
- 170: <span class="ruby-ivar">@input</span>
16
- 171: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/cgi.rb, line 159</span>
14
+ 159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">args</span>
15
+ 160: <span class="ruby-ivar">@args</span>
16
+ 161: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>