mongrel 0.3.13.1 → 0.3.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. data/Rakefile +3 -1
  2. data/doc/rdoc/classes/Mongrel.html +3 -2
  3. data/doc/rdoc/classes/Mongrel/CGIWrapper.html +49 -49
  4. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +11 -14
  5. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +34 -12
  6. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +21 -5
  7. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +14 -5
  8. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000105.html +12 -5
  9. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +5 -6
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000107.html +18 -0
  11. data/doc/rdoc/classes/Mongrel/{URIClassifier.src/M000090.html → CGIWrapper.src/M000108.html} +5 -5
  12. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000109.html +19 -0
  13. data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
  14. data/doc/rdoc/classes/Mongrel/Camping.src/{M000047.html → M000048.html} +0 -0
  15. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
  16. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +5 -38
  17. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +51 -0
  18. data/doc/rdoc/classes/Mongrel/Command/Base.html +65 -65
  19. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +11 -29
  20. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +29 -5
  21. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +5 -5
  22. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +5 -5
  23. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +5 -5
  24. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +5 -9
  25. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +9 -5
  26. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +5 -5
  27. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +5 -5
  28. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +5 -11
  29. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +11 -11
  30. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +11 -5
  31. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +18 -0
  32. data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
  33. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +7 -12
  34. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +12 -37
  35. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +50 -0
  36. data/doc/rdoc/classes/Mongrel/Configurator.html +120 -114
  37. data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +14 -7
  38. data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +18 -10
  39. data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +7 -5
  40. data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +7 -21
  41. data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +10 -6
  42. data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +5 -17
  43. data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +25 -20
  44. data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +6 -5
  45. data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +17 -11
  46. data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +20 -6
  47. data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +5 -5
  48. data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +11 -9
  49. data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +6 -12
  50. data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +5 -5
  51. data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +9 -22
  52. data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +12 -5
  53. data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +5 -20
  54. data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +22 -5
  55. data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +18 -0
  56. data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +33 -0
  57. data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +18 -0
  58. data/doc/rdoc/classes/Mongrel/Const.html +1 -1
  59. data/doc/rdoc/classes/Mongrel/DeflateFilter.html +10 -10
  60. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000096.html → M000099.html} +5 -5
  61. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000097.html → M000100.html} +14 -14
  62. data/doc/rdoc/classes/Mongrel/DirHandler.html +31 -31
  63. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +8 -30
  64. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +30 -29
  65. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +29 -50
  66. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +50 -26
  67. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +26 -5
  68. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +18 -0
  69. data/doc/rdoc/classes/Mongrel/Error404Handler.html +10 -10
  70. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000128.html → M000131.html} +4 -4
  71. data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000129.html → M000132.html} +4 -4
  72. data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
  73. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000070.html → M000072.html} +4 -4
  74. data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000071.html → M000073.html} +4 -4
  75. data/doc/rdoc/classes/Mongrel/HttpHandler.html +31 -10
  76. data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000076.html → M000078.html} +0 -0
  77. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000079.html +17 -0
  78. data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000077.html → M000080.html} +3 -3
  79. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +25 -10
  80. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +3 -3
  81. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +4 -6
  82. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +6 -4
  83. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000025.html +17 -0
  84. data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
  85. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000051.html +5 -6
  86. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000052.html +7 -7
  87. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000053.html +7 -37
  88. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000054.html +37 -5
  89. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000055.html +5 -5
  90. data/doc/rdoc/classes/Mongrel/HttpParser.src/M000056.html +5 -6
  91. data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000050.html → M000057.html} +6 -6
  92. data/doc/rdoc/classes/Mongrel/HttpRequest.html +30 -21
  93. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +43 -19
  94. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000136.html → M000139.html} +6 -6
  95. data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000137.html → M000140.html} +6 -6
  96. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000141.html +32 -0
  97. data/doc/rdoc/classes/Mongrel/HttpResponse.html +61 -61
  98. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +12 -9
  99. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +7 -9
  100. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +12 -9
  101. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +9 -18
  102. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +9 -8
  103. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +9 -7
  104. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +18 -7
  105. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +8 -7
  106. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +7 -5
  107. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +20 -0
  108. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +20 -0
  109. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +18 -0
  110. data/doc/rdoc/classes/Mongrel/HttpServer.html +63 -41
  111. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +12 -76
  112. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +74 -13
  113. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +18 -50
  114. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +8 -21
  115. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +38 -5
  116. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +21 -9
  117. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +18 -0
  118. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +22 -0
  119. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +15 -15
  120. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +26 -12
  121. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +12 -13
  122. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +26 -0
  123. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +15 -15
  124. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +9 -38
  125. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +38 -10
  126. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +23 -0
  127. data/doc/rdoc/classes/Mongrel/RedirectHandler.html +10 -10
  128. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000133.html → M000136.html} +8 -8
  129. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000134.html → M000137.html} +13 -13
  130. data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +16 -16
  131. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000130.html → M000133.html} +10 -10
  132. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000131.html → M000134.html} +10 -10
  133. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000132.html → M000135.html} +4 -4
  134. data/doc/rdoc/classes/Mongrel/StatusHandler.html +20 -20
  135. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +5 -29
  136. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +11 -7
  137. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000076.html +42 -0
  138. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000077.html +20 -0
  139. data/doc/rdoc/classes/Mongrel/TimeoutError.html +117 -0
  140. data/doc/rdoc/classes/Mongrel/URIClassifier.html +30 -30
  141. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +5 -38
  142. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +5 -23
  143. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000095.html +16 -60
  144. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000096.html +51 -0
  145. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000097.html +36 -0
  146. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000098.html +83 -0
  147. data/doc/rdoc/classes/RequestLog/Access.html +5 -5
  148. data/doc/rdoc/classes/RequestLog/Access.src/{M000139.html → M000142.html} +0 -0
  149. data/doc/rdoc/classes/RequestLog/Files.html +5 -5
  150. data/doc/rdoc/classes/RequestLog/Files.src/{M000140.html → M000143.html} +0 -0
  151. data/doc/rdoc/classes/RequestLog/Objects.html +5 -5
  152. data/doc/rdoc/classes/RequestLog/Objects.src/{M000142.html → M000145.html} +0 -0
  153. data/doc/rdoc/classes/RequestLog/Params.html +5 -5
  154. data/doc/rdoc/classes/RequestLog/Params.src/{M000143.html → M000146.html} +0 -0
  155. data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
  156. data/doc/rdoc/classes/RequestLog/Threads.src/{M000141.html → M000144.html} +0 -0
  157. data/doc/rdoc/created.rid +1 -1
  158. data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
  159. data/doc/rdoc/files/lib/mongrel/camping_rb.html +2 -2
  160. data/doc/rdoc/files/lib/mongrel/cgi_rb.html +2 -2
  161. data/doc/rdoc/files/lib/mongrel/command_rb.html +2 -2
  162. data/doc/rdoc/files/lib/mongrel/debug_rb.html +2 -2
  163. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +1 -1
  164. data/doc/rdoc/files/lib/mongrel/init_rb.html +2 -2
  165. data/doc/rdoc/files/lib/mongrel/rails_rb.html +2 -2
  166. data/doc/rdoc/files/lib/mongrel/stats_rb.html +2 -2
  167. data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +2 -2
  168. data/doc/rdoc/files/lib/mongrel_rb.html +2 -2
  169. data/doc/rdoc/fr_class_index.html +1 -0
  170. data/doc/rdoc/fr_method_index.html +125 -122
  171. data/ext/http11/http11.c +2 -2
  172. data/ext/http11/http11_parser.c +1 -1
  173. data/ext/http11/http11_parser.h +1 -1
  174. data/lib/mongrel.rb +70 -53
  175. data/lib/mongrel/camping.rb +1 -1
  176. data/lib/mongrel/cgi.rb +1 -1
  177. data/lib/mongrel/command.rb +1 -1
  178. data/lib/mongrel/debug.rb +1 -1
  179. data/lib/mongrel/handlers.rb +10 -1
  180. data/lib/mongrel/init.rb +1 -1
  181. data/lib/mongrel/rails.rb +1 -1
  182. data/lib/mongrel/stats.rb +1 -1
  183. data/lib/mongrel/tcphack.rb +1 -1
  184. data/test/test_command.rb +1 -1
  185. data/test/test_conditional.rb +1 -1
  186. data/test/test_configurator.rb +1 -1
  187. data/test/test_debug.rb +1 -1
  188. data/test/test_handlers.rb +1 -1
  189. data/test/test_http11.rb +1 -1
  190. data/test/test_response.rb +1 -1
  191. data/test/test_stats.rb +1 -1
  192. data/test/test_uriclassifier.rb +1 -1
  193. data/test/test_ws.rb +1 -1
  194. data/tools/trickletest.rb +28 -20
  195. metadata +50 -46
  196. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000098.html +0 -24
  197. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000099.html +0 -47
  198. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000100.html +0 -34
  199. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000048.html +0 -18
  200. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +0 -24
  201. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000038.html +0 -20
  202. data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +0 -29
  203. data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +0 -31
  204. data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +0 -20
  205. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000057.html +0 -21
  206. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000135.html +0 -52
  207. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +0 -25
  208. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +0 -20
  209. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +0 -25
  210. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +0 -25
  211. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000041.html +0 -39
  212. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000044.html +0 -22
  213. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000072.html +0 -18
  214. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000073.html +0 -24
  215. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html +0 -18
  216. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +0 -39
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.1"
56
+ version="0.3.13.2"
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."
@@ -85,6 +85,7 @@ task :install do
85
85
  sh %{rake package}
86
86
  sh %{gem install pkg/mongrel-#{version}}
87
87
  sub_project("mongrel_status", :install)
88
+ sub_project("mongrel_upload_progress", :install)
88
89
  sub_project("mongrel_console", :install)
89
90
  if RUBY_PLATFORM =~ /mswin/
90
91
  sub_project("mongrel_service", :install)
@@ -93,6 +94,7 @@ end
93
94
 
94
95
  task :uninstall => [:clean] do
95
96
  sub_project("mongrel_status", :uninstall)
97
+ sub_project("mongrel_upload_progress", :uninstall)
96
98
  sub_project("mongrel_console", :uninstall)
97
99
  sh %{gem uninstall mongrel}
98
100
  sub_project("gem_plugin", :uninstall)
@@ -98,8 +98,8 @@
98
98
 
99
99
  <div id="description">
100
100
  <p>
101
- <a href="Mongrel.html">Mongrel</a> Web Server - A Mostly Ruby Webserver and
102
- Library
101
+ <a href="Mongrel.html">Mongrel</a> Web Server - A Mostly Ruby HTTP server
102
+ and Library
103
103
  </p>
104
104
  <p>
105
105
  Copyright (C) 2005 Zed A. Shaw zedshaw AT zedshaw dot com
@@ -159,6 +159,7 @@ Class <a href="Mongrel/RedirectHandler.html" class="link">Mongrel::RedirectHandl
159
159
  Class <a href="Mongrel/StatisticsFilter.html" class="link">Mongrel::StatisticsFilter</a><br />
160
160
  Class <a href="Mongrel/StatusHandler.html" class="link">Mongrel::StatusHandler</a><br />
161
161
  Class <a href="Mongrel/StopServer.html" class="link">Mongrel::StopServer</a><br />
162
+ Class <a href="Mongrel/TimeoutError.html" class="link">Mongrel::TimeoutError</a><br />
162
163
  Class <a href="Mongrel/URIClassifier.html" class="link">Mongrel::URIClassifier</a><br />
163
164
 
164
165
  </div>
@@ -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#M000058">DirHandler#can_serve</a> for more
107
+ href="DirHandler.html#M000059">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="#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;
120
+ <a href="#M000106">args</a>&nbsp;&nbsp;
121
+ <a href="#M000107">env_table</a>&nbsp;&nbsp;
122
+ <a href="#M000102">header</a>&nbsp;&nbsp;
123
+ <a href="#M000101">new</a>&nbsp;&nbsp;
124
+ <a href="#M000104">out</a>&nbsp;&nbsp;
125
+ <a href="#M000103">send_cookies</a>&nbsp;&nbsp;
126
+ <a href="#M000105">status</a>&nbsp;&nbsp;
127
+ <a href="#M000108">stdinput</a>&nbsp;&nbsp;
128
+ <a href="#M000109">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#M000099">CGIWrapper.header</a> function
152
+ href="CGIWrapper.html#M000102">CGIWrapper.header</a> function
153
153
 
154
154
  </td>
155
155
  </tr>
@@ -189,12 +189,12 @@ href="CGIWrapper.html#M000099">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-M000098" class="method-detail">
193
- <a name="M000098"></a>
192
+ <div id="method-M000101" class="method-detail">
193
+ <a name="M000101"></a>
194
194
 
195
195
  <div class="method-heading">
196
- <a href="CGIWrapper.src/M000098.html" target="Code" class="method-signature"
197
- onclick="popupCode('CGIWrapper.src/M000098.html');return false;">
196
+ <a href="CGIWrapper.src/M000101.html" target="Code" class="method-signature"
197
+ onclick="popupCode('CGIWrapper.src/M000101.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-M000103" class="method-detail">
216
- <a name="M000103"></a>
215
+ <div id="method-M000106" class="method-detail">
216
+ <a name="M000106"></a>
217
217
 
218
218
  <div class="method-heading">
219
- <a href="CGIWrapper.src/M000103.html" target="Code" class="method-signature"
220
- onclick="popupCode('CGIWrapper.src/M000103.html');return false;">
219
+ <a href="CGIWrapper.src/M000106.html" target="Code" class="method-signature"
220
+ onclick="popupCode('CGIWrapper.src/M000106.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-M000104" class="method-detail">
233
- <a name="M000104"></a>
232
+ <div id="method-M000107" class="method-detail">
233
+ <a name="M000107"></a>
234
234
 
235
235
  <div class="method-heading">
236
- <a href="CGIWrapper.src/M000104.html" target="Code" class="method-signature"
237
- onclick="popupCode('CGIWrapper.src/M000104.html');return false;">
236
+ <a href="CGIWrapper.src/M000107.html" target="Code" class="method-signature"
237
+ onclick="popupCode('CGIWrapper.src/M000107.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#M000104">env_table</a>
244
+ Used to wrap the normal <a href="CGIWrapper.html#M000107">env_table</a>
245
245
  variable used inside CGI.
246
246
  </p>
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000099" class="method-detail">
251
- <a name="M000099"></a>
250
+ <div id="method-M000102" class="method-detail">
251
+ <a name="M000102"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="CGIWrapper.src/M000099.html" target="Code" class="method-signature"
255
- onclick="popupCode('CGIWrapper.src/M000099.html');return false;">
254
+ <a href="CGIWrapper.src/M000102.html" target="Code" class="method-signature"
255
+ onclick="popupCode('CGIWrapper.src/M000102.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-M000101" class="method-detail">
275
- <a name="M000101"></a>
274
+ <div id="method-M000104" class="method-detail">
275
+ <a name="M000104"></a>
276
276
 
277
277
  <div class="method-heading">
278
- <a href="CGIWrapper.src/M000101.html" target="Code" class="method-signature"
279
- onclick="popupCode('CGIWrapper.src/M000101.html');return false;">
278
+ <a href="CGIWrapper.src/M000104.html" target="Code" class="method-signature"
279
+ onclick="popupCode('CGIWrapper.src/M000104.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#M000102">CGIWrapper.status</a> function.
291
+ href="CGIWrapper.html#M000105">CGIWrapper.status</a> function.
292
292
  </p>
293
293
  </div>
294
294
  </div>
295
295
 
296
- <div id="method-M000100" class="method-detail">
297
- <a name="M000100"></a>
296
+ <div id="method-M000103" class="method-detail">
297
+ <a name="M000103"></a>
298
298
 
299
299
  <div class="method-heading">
300
- <a href="CGIWrapper.src/M000100.html" target="Code" class="method-signature"
301
- onclick="popupCode('CGIWrapper.src/M000100.html');return false;">
300
+ <a href="CGIWrapper.src/M000103.html" target="Code" class="method-signature"
301
+ onclick="popupCode('CGIWrapper.src/M000103.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-M000102" class="method-detail">
318
- <a name="M000102"></a>
317
+ <div id="method-M000105" class="method-detail">
318
+ <a name="M000105"></a>
319
319
 
320
320
  <div class="method-heading">
321
- <a href="CGIWrapper.src/M000102.html" target="Code" class="method-signature"
322
- onclick="popupCode('CGIWrapper.src/M000102.html');return false;">
321
+ <a href="CGIWrapper.src/M000105.html" target="Code" class="method-signature"
322
+ onclick="popupCode('CGIWrapper.src/M000105.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-M000105" class="method-detail">
337
- <a name="M000105"></a>
336
+ <div id="method-M000108" class="method-detail">
337
+ <a name="M000108"></a>
338
338
 
339
339
  <div class="method-heading">
340
- <a href="CGIWrapper.src/M000105.html" target="Code" class="method-signature"
341
- onclick="popupCode('CGIWrapper.src/M000105.html');return false;">
340
+ <a href="CGIWrapper.src/M000108.html" target="Code" class="method-signature"
341
+ onclick="popupCode('CGIWrapper.src/M000108.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-M000106" class="method-detail">
354
- <a name="M000106"></a>
353
+ <div id="method-M000109" class="method-detail">
354
+ <a name="M000109"></a>
355
355
 
356
356
  <div class="method-heading">
357
- <a href="CGIWrapper.src/M000106.html" target="Code" class="method-signature"
358
- onclick="popupCode('CGIWrapper.src/M000106.html');return false;">
357
+ <a href="CGIWrapper.src/M000109.html" target="Code" class="method-signature"
358
+ onclick="popupCode('CGIWrapper.src/M000109.html');return false;">
359
359
  <span class="method-name">stdoutput</span><span class="method-args">()</span>
360
360
  </a>
361
361
  </div>
@@ -5,23 +5,20 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>out (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 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 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>
26
23
  </body>
27
24
  </html>
@@ -5,21 +5,43 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>status (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 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 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>
24
46
  </body>
25
47
  </html>
@@ -5,14 +5,30 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>args (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 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 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>
17
33
  </body>
18
34
  </html>
@@ -5,14 +5,23 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>env_table (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 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 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>stdinput (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 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 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,15 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>stdoutput (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 174</span>
14
- 174: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdoutput</span>
15
- 175: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;WARNING: Your program is doing something not expected. Please tell Zed that stdoutput was used and what software you are running. Thanks.&quot;</span>
16
- 176: <span class="ruby-ivar">@response</span>.<span class="ruby-identifier">body</span>
17
- 177: <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>
18
17
  </body>
19
18
  </html>