narf 0.6.3 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (793) hide show
  1. data/ChangeLog +0 -237
  2. data/InstalledFiles +488 -0
  3. data/README +2 -0
  4. data/bin/narf +0 -0
  5. data/bin/narftest +17 -17
  6. data/build.rb +57 -93
  7. data/build.rb~ +278 -0
  8. data/config.save +12 -0
  9. data/doc/apache_cgi.txt +14 -4
  10. data/doc/apache_cgi.txt~ +23 -0
  11. data/doc/fastcgi.txt +10 -6
  12. data/doc/fastcgi.txt~ +21 -0
  13. data/doc/mod_ruby.txt +16 -2
  14. data/doc/mod_ruby.txt~ +7 -0
  15. data/doc/rdoc/classes/PHPRB.html +188 -0
  16. data/doc/rdoc/classes/PHPRB.src/M000001.html +15 -0
  17. data/doc/rdoc/classes/PHPRB.src/M000002.html +19 -0
  18. data/doc/rdoc/classes/PHPRB.src/M000003.html +25 -0
  19. data/doc/rdoc/classes/PHPRB.src/M000004.html +15 -0
  20. data/doc/rdoc/classes/PHPRB.src/M000005.html +23 -0
  21. data/doc/rdoc/classes/PHPRB.src/M000006.html +15 -0
  22. data/doc/rdoc/classes/PHPRB.src/M000007.html +17 -0
  23. data/doc/rdoc/classes/PHPRB.src/M000008.html +17 -0
  24. data/doc/rdoc/classes/PHPRB/Compiler.html +156 -0
  25. data/doc/rdoc/classes/PHPRB/Compiler.src/M000014.html +75 -0
  26. data/doc/rdoc/classes/PHPRB/Compiler.src/M000015.html +35 -0
  27. data/doc/rdoc/classes/PHPRB/Compiler.src/M000016.html +15 -0
  28. data/doc/rdoc/classes/PHPRB/Compiler.src/M000017.html +18 -0
  29. data/doc/rdoc/classes/PHPRB/Compiler/Buffer.html +122 -0
  30. data/doc/rdoc/classes/PHPRB/Compiler/Buffer.src/M000018.html +20 -0
  31. data/doc/rdoc/classes/PHPRB/Compiler/Buffer.src/M000019.html +15 -0
  32. data/doc/rdoc/classes/PHPRB/Compiler/Buffer.src/M000020.html +17 -0
  33. data/doc/rdoc/classes/PHPRB/Compiler/Buffer.src/M000021.html +20 -0
  34. data/doc/rdoc/classes/PHPRB/Compiler/ExplicitScanner.html +81 -0
  35. data/doc/rdoc/classes/PHPRB/Compiler/ExplicitScanner.src/M000028.html +41 -0
  36. data/doc/rdoc/classes/PHPRB/Compiler/PercentLine.html +95 -0
  37. data/doc/rdoc/classes/PHPRB/Compiler/PercentLine.src/M000031.html +15 -0
  38. data/doc/rdoc/classes/PHPRB/Compiler/PercentScanner.html +81 -0
  39. data/doc/rdoc/classes/PHPRB/Compiler/PercentScanner.src/M000030.html +36 -0
  40. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.html +132 -0
  41. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.src/M000023.html +15 -0
  42. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.src/M000024.html +15 -0
  43. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.src/M000025.html +16 -0
  44. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.src/M000026.html +16 -0
  45. data/doc/rdoc/classes/PHPRB/Compiler/Scanner.src/M000027.html +13 -0
  46. data/doc/rdoc/classes/PHPRB/Compiler/SimpleScanner.html +81 -0
  47. data/doc/rdoc/classes/PHPRB/Compiler/SimpleScanner.src/M000022.html +20 -0
  48. data/doc/rdoc/classes/PHPRB/Compiler/SimpleScanner2.html +81 -0
  49. data/doc/rdoc/classes/PHPRB/Compiler/SimpleScanner2.src/M000029.html +24 -0
  50. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.html +164 -0
  51. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000032.html +26 -0
  52. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000033.html +25 -0
  53. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000034.html +24 -0
  54. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000035.html +18 -0
  55. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000036.html +23 -0
  56. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000037.html +30 -0
  57. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000038.html +27 -0
  58. data/doc/rdoc/classes/PHPRB/Compiler/TrimScanner.src/M000039.html +15 -0
  59. data/doc/rdoc/classes/PHPRB/DefMethod.html +73 -0
  60. data/doc/rdoc/classes/PHPRB/DefMethod.src/M000009.html +21 -0
  61. data/doc/rdoc/classes/PHPRB/Util.html +115 -0
  62. data/doc/rdoc/classes/PHPRB/Util.src/M000010.html +15 -0
  63. data/doc/rdoc/classes/PHPRB/Util.src/M000012.html +15 -0
  64. data/doc/rdoc/classes/Web.html +816 -0
  65. data/doc/rdoc/classes/Web.src/M000001.html +15 -0
  66. data/doc/rdoc/classes/Web.src/M000002.html +15 -0
  67. data/doc/rdoc/classes/Web.src/M000003.html +15 -0
  68. data/doc/rdoc/classes/Web.src/M000004.html +15 -0
  69. data/doc/rdoc/classes/Web.src/M000005.html +20 -0
  70. data/doc/rdoc/classes/Web.src/M000006.html +17 -0
  71. data/doc/rdoc/classes/Web.src/M000007.html +15 -0
  72. data/doc/rdoc/classes/Web.src/M000008.html +18 -0
  73. data/doc/rdoc/classes/Web.src/M000009.html +18 -0
  74. data/doc/rdoc/classes/Web.src/M000010.html +16 -0
  75. data/doc/rdoc/classes/Web.src/M000011.html +15 -0
  76. data/doc/rdoc/classes/Web.src/M000012.html +15 -0
  77. data/doc/rdoc/classes/Web.src/M000013.html +15 -0
  78. data/doc/rdoc/classes/Web.src/M000014.html +15 -0
  79. data/doc/rdoc/classes/Web.src/M000015.html +15 -0
  80. data/doc/rdoc/classes/Web.src/M000016.html +15 -0
  81. data/doc/rdoc/classes/Web.src/M000017.html +15 -0
  82. data/doc/rdoc/classes/Web.src/M000018.html +15 -0
  83. data/doc/rdoc/classes/Web.src/M000019.html +15 -0
  84. data/doc/rdoc/classes/Web.src/M000020.html +122 -0
  85. data/doc/rdoc/classes/Web.src/M000021.html +19 -0
  86. data/doc/rdoc/classes/Web.src/M000022.html +15 -0
  87. data/doc/rdoc/classes/Web.src/M000023.html +15 -0
  88. data/doc/rdoc/classes/Web.src/M000024.html +46 -0
  89. data/doc/rdoc/classes/Web.src/M000025.html +23 -0
  90. data/doc/rdoc/classes/Web.src/M000026.html +23 -0
  91. data/doc/rdoc/classes/Web.src/M000032.html +18 -0
  92. data/doc/rdoc/classes/Web.src/M000033.html +15 -0
  93. data/doc/rdoc/classes/Web.src/M000034.html +15 -0
  94. data/doc/rdoc/classes/Web.src/M000035.html +15 -0
  95. data/doc/rdoc/classes/Web.src/M000037.html +19 -0
  96. data/doc/rdoc/classes/Web.src/M000038.html +19 -0
  97. data/doc/rdoc/classes/Web.src/M000039.html +135 -0
  98. data/doc/rdoc/classes/Web.src/M000040.html +15 -0
  99. data/doc/rdoc/classes/Web.src/M000041.html +15 -0
  100. data/doc/rdoc/classes/Web.src/M000042.html +15 -0
  101. data/doc/rdoc/classes/Web.src/M000043.html +15 -0
  102. data/doc/rdoc/classes/Web.src/M000044.html +15 -0
  103. data/doc/rdoc/classes/Web.src/M000045.html +17 -0
  104. data/doc/rdoc/classes/Web.src/M000046.html +18 -0
  105. data/doc/rdoc/classes/Web.src/M000047.html +18 -0
  106. data/doc/rdoc/classes/Web.src/M000048.html +16 -0
  107. data/doc/rdoc/classes/Web.src/M000049.html +15 -0
  108. data/doc/rdoc/classes/Web.src/M000050.html +15 -0
  109. data/doc/rdoc/classes/Web.src/M000051.html +15 -0
  110. data/doc/rdoc/classes/Web.src/M000052.html +15 -0
  111. data/doc/rdoc/classes/Web.src/M000053.html +15 -0
  112. data/doc/rdoc/classes/Web.src/M000054.html +15 -0
  113. data/doc/rdoc/classes/Web.src/M000055.html +15 -0
  114. data/doc/rdoc/classes/Web.src/M000061.html +15 -0
  115. data/doc/rdoc/classes/Web.src/M000062.html +46 -0
  116. data/doc/rdoc/classes/Web.src/M000063.html +23 -0
  117. data/doc/rdoc/classes/Web.src/M000064.html +23 -0
  118. data/doc/rdoc/classes/Web.src/M000070.html +18 -0
  119. data/doc/rdoc/classes/Web.src/M000071.html +15 -0
  120. data/doc/rdoc/classes/Web.src/M000072.html +15 -0
  121. data/doc/rdoc/classes/Web.src/M000073.html +15 -0
  122. data/doc/rdoc/classes/Web.src/M000075.html +20 -0
  123. data/doc/rdoc/classes/Web.src/M000076.html +19 -0
  124. data/doc/rdoc/classes/Web.src/M000077.html +136 -0
  125. data/doc/rdoc/classes/Web/CGD.html +173 -0
  126. data/doc/rdoc/classes/Web/CGD.src/M000047.html +24 -0
  127. data/doc/rdoc/classes/Web/CGD.src/M000048.html +24 -0
  128. data/doc/rdoc/classes/Web/CGD.src/M000049.html +15 -0
  129. data/doc/rdoc/classes/Web/CGD.src/M000050.html +15 -0
  130. data/doc/rdoc/classes/Web/CGD.src/M000051.html +23 -0
  131. data/doc/rdoc/classes/Web/CGD.src/M000064.html +24 -0
  132. data/doc/rdoc/classes/Web/CGD.src/M000065.html +24 -0
  133. data/doc/rdoc/classes/Web/CGD.src/M000066.html +15 -0
  134. data/doc/rdoc/classes/Web/CGD.src/M000067.html +15 -0
  135. data/doc/rdoc/classes/Web/CGD.src/M000068.html +23 -0
  136. data/doc/rdoc/classes/Web/CGD.src/M000102.html +24 -0
  137. data/doc/rdoc/classes/Web/CGD.src/M000103.html +24 -0
  138. data/doc/rdoc/classes/Web/CGD.src/M000104.html +15 -0
  139. data/doc/rdoc/classes/Web/CGD.src/M000105.html +15 -0
  140. data/doc/rdoc/classes/Web/CGD.src/M000106.html +23 -0
  141. data/doc/rdoc/classes/Web/CGI.html +939 -0
  142. data/doc/rdoc/classes/Web/CGI.src/M000061.html +15 -0
  143. data/doc/rdoc/classes/Web/CGI.src/M000062.html +24 -0
  144. data/doc/rdoc/classes/Web/CGI.src/M000063.html +15 -0
  145. data/doc/rdoc/classes/Web/CGI.src/M000064.html +15 -0
  146. data/doc/rdoc/classes/Web/CGI.src/M000065.html +15 -0
  147. data/doc/rdoc/classes/Web/CGI.src/M000066.html +15 -0
  148. data/doc/rdoc/classes/Web/CGI.src/M000067.html +17 -0
  149. data/doc/rdoc/classes/Web/CGI.src/M000068.html +34 -0
  150. data/doc/rdoc/classes/Web/CGI.src/M000069.html +22 -0
  151. data/doc/rdoc/classes/Web/CGI.src/M000070.html +15 -0
  152. data/doc/rdoc/classes/Web/CGI.src/M000071.html +15 -0
  153. data/doc/rdoc/classes/Web/CGI.src/M000072.html +19 -0
  154. data/doc/rdoc/classes/Web/CGI.src/M000073.html +18 -0
  155. data/doc/rdoc/classes/Web/CGI.src/M000074.html +19 -0
  156. data/doc/rdoc/classes/Web/CGI.src/M000075.html +15 -0
  157. data/doc/rdoc/classes/Web/CGI.src/M000076.html +15 -0
  158. data/doc/rdoc/classes/Web/CGI.src/M000077.html +15 -0
  159. data/doc/rdoc/classes/Web/CGI.src/M000078.html +13 -0
  160. data/doc/rdoc/classes/Web/CGI.src/M000079.html +15 -0
  161. data/doc/rdoc/classes/Web/CGI.src/M000080.html +19 -0
  162. data/doc/rdoc/classes/Web/CGI.src/M000081.html +15 -0
  163. data/doc/rdoc/classes/Web/CGI.src/M000082.html +15 -0
  164. data/doc/rdoc/classes/Web/CGI.src/M000083.html +15 -0
  165. data/doc/rdoc/classes/Web/CGI.src/M000084.html +15 -0
  166. data/doc/rdoc/classes/Web/CGI.src/M000085.html +15 -0
  167. data/doc/rdoc/classes/Web/CGI.src/M000086.html +35 -0
  168. data/doc/rdoc/classes/Web/CGI.src/M000087.html +22 -0
  169. data/doc/rdoc/classes/Web/CGI.src/M000088.html +15 -0
  170. data/doc/rdoc/classes/Web/CGI.src/M000089.html +15 -0
  171. data/doc/rdoc/classes/Web/CGI.src/M000090.html +19 -0
  172. data/doc/rdoc/classes/Web/CGI.src/M000091.html +18 -0
  173. data/doc/rdoc/classes/Web/CGI.src/M000092.html +19 -0
  174. data/doc/rdoc/classes/Web/CGI.src/M000093.html +18 -0
  175. data/doc/rdoc/classes/Web/CGI.src/M000094.html +19 -0
  176. data/doc/rdoc/classes/Web/CGI.src/M000095.html +15 -0
  177. data/doc/rdoc/classes/Web/CGI.src/M000096.html +15 -0
  178. data/doc/rdoc/classes/Web/CGI.src/M000097.html +15 -0
  179. data/doc/rdoc/classes/Web/CGI.src/M000098.html +20 -0
  180. data/doc/rdoc/classes/Web/CGI.src/M000099.html +20 -0
  181. data/doc/rdoc/classes/Web/CGI.src/M000100.html +15 -0
  182. data/doc/rdoc/classes/Web/CGI.src/M000101.html +19 -0
  183. data/doc/rdoc/classes/Web/CGI.src/M000102.html +15 -0
  184. data/doc/rdoc/classes/Web/CGI.src/M000103.html +15 -0
  185. data/doc/rdoc/classes/Web/CGI.src/M000104.html +15 -0
  186. data/doc/rdoc/classes/Web/CGI.src/M000105.html +20 -0
  187. data/doc/rdoc/classes/Web/CGI.src/M000106.html +36 -0
  188. data/doc/rdoc/classes/Web/CGI.src/M000107.html +19 -0
  189. data/doc/rdoc/classes/Web/CGI.src/M000108.html +18 -0
  190. data/doc/rdoc/classes/Web/CGI.src/M000109.html +15 -0
  191. data/doc/rdoc/classes/Web/CGI.src/M000110.html +17 -0
  192. data/doc/rdoc/classes/Web/CGI.src/M000111.html +15 -0
  193. data/doc/rdoc/classes/Web/CGI.src/M000112.html +16 -0
  194. data/doc/rdoc/classes/Web/CGI.src/M000113.html +15 -0
  195. data/doc/rdoc/classes/Web/CGI.src/M000114.html +15 -0
  196. data/doc/rdoc/classes/Web/CGI.src/M000115.html +15 -0
  197. data/doc/rdoc/classes/Web/CGI.src/M000116.html +16 -0
  198. data/doc/rdoc/classes/Web/CGI.src/M000117.html +15 -0
  199. data/doc/rdoc/classes/Web/CGI.src/M000118.html +15 -0
  200. data/doc/rdoc/classes/Web/CGI.src/M000119.html +15 -0
  201. data/doc/rdoc/classes/Web/CGI.src/M000120.html +15 -0
  202. data/doc/rdoc/classes/Web/CGI.src/M000121.html +15 -0
  203. data/doc/rdoc/classes/Web/CGI.src/M000122.html +15 -0
  204. data/doc/rdoc/classes/Web/CGI.src/M000123.html +19 -0
  205. data/doc/rdoc/classes/Web/CGI.src/M000124.html +15 -0
  206. data/doc/rdoc/classes/Web/CGI.src/M000125.html +15 -0
  207. data/doc/rdoc/classes/Web/CGI.src/M000126.html +43 -0
  208. data/doc/rdoc/classes/Web/CGI.src/M000127.html +18 -0
  209. data/doc/rdoc/classes/Web/CGI.src/M000128.html +20 -0
  210. data/doc/rdoc/classes/Web/CGI.src/M000129.html +15 -0
  211. data/doc/rdoc/classes/Web/CGI.src/M000130.html +15 -0
  212. data/doc/rdoc/classes/Web/CGI.src/M000131.html +15 -0
  213. data/doc/rdoc/classes/Web/CGI.src/M000132.html +44 -0
  214. data/doc/rdoc/classes/Web/CGI.src/M000133.html +24 -0
  215. data/doc/rdoc/classes/Web/CGI.src/M000134.html +22 -0
  216. data/doc/rdoc/classes/Web/CGI.src/M000135.html +20 -0
  217. data/doc/rdoc/classes/Web/CGI.src/M000136.html +19 -0
  218. data/doc/rdoc/classes/Web/CGI.src/M000137.html +15 -0
  219. data/doc/rdoc/classes/Web/CGI.src/M000138.html +15 -0
  220. data/doc/rdoc/classes/Web/CGI.src/M000139.html +19 -0
  221. data/doc/rdoc/classes/Web/CGI.src/M000140.html +15 -0
  222. data/doc/rdoc/classes/Web/CGI.src/M000141.html +15 -0
  223. data/doc/rdoc/classes/Web/CGI.src/M000142.html +15 -0
  224. data/doc/rdoc/classes/Web/CGI.src/M000143.html +20 -0
  225. data/doc/rdoc/classes/Web/CGI.src/M000144.html +36 -0
  226. data/doc/rdoc/classes/Web/CGI.src/M000145.html +19 -0
  227. data/doc/rdoc/classes/Web/CGI.src/M000146.html +18 -0
  228. data/doc/rdoc/classes/Web/CGI.src/M000147.html +15 -0
  229. data/doc/rdoc/classes/Web/CGI.src/M000148.html +17 -0
  230. data/doc/rdoc/classes/Web/CGI.src/M000149.html +15 -0
  231. data/doc/rdoc/classes/Web/CGI.src/M000150.html +16 -0
  232. data/doc/rdoc/classes/Web/CGI.src/M000151.html +15 -0
  233. data/doc/rdoc/classes/Web/CGI.src/M000152.html +15 -0
  234. data/doc/rdoc/classes/Web/CGI.src/M000153.html +15 -0
  235. data/doc/rdoc/classes/Web/CGI.src/M000154.html +16 -0
  236. data/doc/rdoc/classes/Web/CGI.src/M000155.html +15 -0
  237. data/doc/rdoc/classes/Web/CGI.src/M000156.html +15 -0
  238. data/doc/rdoc/classes/Web/CGI.src/M000157.html +15 -0
  239. data/doc/rdoc/classes/Web/CGI.src/M000158.html +15 -0
  240. data/doc/rdoc/classes/Web/CGI.src/M000159.html +15 -0
  241. data/doc/rdoc/classes/Web/CGI.src/M000160.html +15 -0
  242. data/doc/rdoc/classes/Web/CGI.src/M000161.html +19 -0
  243. data/doc/rdoc/classes/Web/CGI.src/M000162.html +15 -0
  244. data/doc/rdoc/classes/Web/CGI.src/M000163.html +15 -0
  245. data/doc/rdoc/classes/Web/CGI.src/M000164.html +43 -0
  246. data/doc/rdoc/classes/Web/CGI.src/M000165.html +18 -0
  247. data/doc/rdoc/classes/Web/CGI.src/M000166.html +20 -0
  248. data/doc/rdoc/classes/Web/CGI.src/M000167.html +15 -0
  249. data/doc/rdoc/classes/Web/CGI.src/M000168.html +15 -0
  250. data/doc/rdoc/classes/Web/CGI.src/M000169.html +15 -0
  251. data/doc/rdoc/classes/Web/CGI.src/M000170.html +50 -0
  252. data/doc/rdoc/classes/Web/CGI.src/M000171.html +24 -0
  253. data/doc/rdoc/classes/Web/CGI.src/M000172.html +22 -0
  254. data/doc/rdoc/classes/Web/Mime.html +138 -0
  255. data/doc/rdoc/classes/Web/Mime.src/M000127.html +15 -0
  256. data/doc/rdoc/classes/Web/Mime.src/M000128.html +15 -0
  257. data/doc/rdoc/classes/Web/Mime.src/M000129.html +23 -0
  258. data/doc/rdoc/classes/Web/Mime.src/M000130.html +15 -0
  259. data/doc/rdoc/classes/Web/Mime.src/M000144.html +15 -0
  260. data/doc/rdoc/classes/Web/Mime.src/M000145.html +15 -0
  261. data/doc/rdoc/classes/Web/Mime.src/M000146.html +23 -0
  262. data/doc/rdoc/classes/Web/Mime.src/M000147.html +15 -0
  263. data/doc/rdoc/classes/Web/Mime.src/M000182.html +15 -0
  264. data/doc/rdoc/classes/Web/Mime.src/M000183.html +15 -0
  265. data/doc/rdoc/classes/Web/Mime.src/M000184.html +23 -0
  266. data/doc/rdoc/classes/Web/Mime.src/M000185.html +15 -0
  267. data/doc/rdoc/classes/Web/Narflates.html +134 -0
  268. data/doc/rdoc/classes/Web/Parser.html +219 -0
  269. data/doc/rdoc/classes/Web/Parser.src/M000023.html +21 -0
  270. data/doc/rdoc/classes/Web/Parser.src/M000024.html +19 -0
  271. data/doc/rdoc/classes/Web/Parser.src/M000025.html +21 -0
  272. data/doc/rdoc/classes/Web/Parser.src/M000026.html +15 -0
  273. data/doc/rdoc/classes/Web/Parser.src/M000027.html +30 -0
  274. data/doc/rdoc/classes/Web/Parser.src/M000028.html +15 -0
  275. data/doc/rdoc/classes/Web/Parser.src/M000029.html +19 -0
  276. data/doc/rdoc/classes/Web/Parser.src/M000030.html +27 -0
  277. data/doc/rdoc/classes/Web/Parser.src/M000031.html +15 -0
  278. data/doc/rdoc/classes/Web/Parser.src/M000032.html +16 -0
  279. data/doc/rdoc/classes/Web/Parser.src/M000033.html +18 -0
  280. data/doc/rdoc/classes/Web/Parser.src/M000040.html +21 -0
  281. data/doc/rdoc/classes/Web/Parser.src/M000041.html +19 -0
  282. data/doc/rdoc/classes/Web/Parser.src/M000042.html +21 -0
  283. data/doc/rdoc/classes/Web/Parser.src/M000043.html +15 -0
  284. data/doc/rdoc/classes/Web/Parser.src/M000044.html +30 -0
  285. data/doc/rdoc/classes/Web/Parser.src/M000045.html +15 -0
  286. data/doc/rdoc/classes/Web/Parser.src/M000046.html +19 -0
  287. data/doc/rdoc/classes/Web/Parser.src/M000047.html +27 -0
  288. data/doc/rdoc/classes/Web/Parser.src/M000048.html +15 -0
  289. data/doc/rdoc/classes/Web/Parser.src/M000049.html +16 -0
  290. data/doc/rdoc/classes/Web/Parser.src/M000050.html +18 -0
  291. data/doc/rdoc/classes/Web/Parser.src/M000078.html +21 -0
  292. data/doc/rdoc/classes/Web/Parser.src/M000079.html +19 -0
  293. data/doc/rdoc/classes/Web/Parser.src/M000080.html +21 -0
  294. data/doc/rdoc/classes/Web/Parser.src/M000081.html +15 -0
  295. data/doc/rdoc/classes/Web/Parser.src/M000082.html +30 -0
  296. data/doc/rdoc/classes/Web/Parser.src/M000083.html +15 -0
  297. data/doc/rdoc/classes/Web/Parser.src/M000084.html +19 -0
  298. data/doc/rdoc/classes/Web/Parser.src/M000085.html +27 -0
  299. data/doc/rdoc/classes/Web/Parser.src/M000086.html +15 -0
  300. data/doc/rdoc/classes/Web/Parser.src/M000087.html +16 -0
  301. data/doc/rdoc/classes/Web/Parser.src/M000088.html +18 -0
  302. data/doc/rdoc/classes/Web/Session.html +188 -0
  303. data/doc/rdoc/classes/Web/Session.src/M000052.html +20 -0
  304. data/doc/rdoc/classes/Web/Session.src/M000053.html +19 -0
  305. data/doc/rdoc/classes/Web/Session.src/M000054.html +21 -0
  306. data/doc/rdoc/classes/Web/Session.src/M000055.html +21 -0
  307. data/doc/rdoc/classes/Web/Session.src/M000056.html +15 -0
  308. data/doc/rdoc/classes/Web/Session.src/M000057.html +17 -0
  309. data/doc/rdoc/classes/Web/Session.src/M000058.html +15 -0
  310. data/doc/rdoc/classes/Web/Session.src/M000059.html +15 -0
  311. data/doc/rdoc/classes/Web/Session.src/M000060.html +16 -0
  312. data/doc/rdoc/classes/Web/Session.src/M000069.html +20 -0
  313. data/doc/rdoc/classes/Web/Session.src/M000070.html +19 -0
  314. data/doc/rdoc/classes/Web/Session.src/M000071.html +21 -0
  315. data/doc/rdoc/classes/Web/Session.src/M000072.html +21 -0
  316. data/doc/rdoc/classes/Web/Session.src/M000073.html +15 -0
  317. data/doc/rdoc/classes/Web/Session.src/M000074.html +17 -0
  318. data/doc/rdoc/classes/Web/Session.src/M000075.html +19 -0
  319. data/doc/rdoc/classes/Web/Session.src/M000076.html +15 -0
  320. data/doc/rdoc/classes/Web/Session.src/M000077.html +15 -0
  321. data/doc/rdoc/classes/Web/Session.src/M000078.html +16 -0
  322. data/doc/rdoc/classes/Web/Session.src/M000107.html +20 -0
  323. data/doc/rdoc/classes/Web/Session.src/M000108.html +19 -0
  324. data/doc/rdoc/classes/Web/Session.src/M000109.html +21 -0
  325. data/doc/rdoc/classes/Web/Session.src/M000110.html +21 -0
  326. data/doc/rdoc/classes/Web/Session.src/M000111.html +15 -0
  327. data/doc/rdoc/classes/Web/Session.src/M000112.html +17 -0
  328. data/doc/rdoc/classes/Web/Session.src/M000113.html +15 -0
  329. data/doc/rdoc/classes/Web/Session.src/M000114.html +15 -0
  330. data/doc/rdoc/classes/Web/Session.src/M000115.html +16 -0
  331. data/doc/rdoc/classes/Web/Testing.html +474 -0
  332. data/doc/rdoc/classes/Web/Testing.src/M000034.html +15 -0
  333. data/doc/rdoc/classes/Web/Testing.src/M000035.html +25 -0
  334. data/doc/rdoc/classes/Web/Testing.src/M000036.html +15 -0
  335. data/doc/rdoc/classes/Web/Testing.src/M000037.html +25 -0
  336. data/doc/rdoc/classes/Web/Testing.src/M000038.html +57 -0
  337. data/doc/rdoc/classes/Web/Testing.src/M000039.html +15 -0
  338. data/doc/rdoc/classes/Web/Testing.src/M000040.html +15 -0
  339. data/doc/rdoc/classes/Web/Testing.src/M000041.html +15 -0
  340. data/doc/rdoc/classes/Web/Testing.src/M000042.html +15 -0
  341. data/doc/rdoc/classes/Web/Testing.src/M000043.html +15 -0
  342. data/doc/rdoc/classes/Web/Testing.src/M000044.html +15 -0
  343. data/doc/rdoc/classes/Web/Testing.src/M000045.html +15 -0
  344. data/doc/rdoc/classes/Web/Testing.src/M000046.html +18 -0
  345. data/doc/rdoc/classes/Web/Testing.src/M000051.html +15 -0
  346. data/doc/rdoc/classes/Web/Testing.src/M000052.html +25 -0
  347. data/doc/rdoc/classes/Web/Testing.src/M000053.html +15 -0
  348. data/doc/rdoc/classes/Web/Testing.src/M000054.html +25 -0
  349. data/doc/rdoc/classes/Web/Testing.src/M000055.html +57 -0
  350. data/doc/rdoc/classes/Web/Testing.src/M000056.html +15 -0
  351. data/doc/rdoc/classes/Web/Testing.src/M000057.html +15 -0
  352. data/doc/rdoc/classes/Web/Testing.src/M000058.html +15 -0
  353. data/doc/rdoc/classes/Web/Testing.src/M000059.html +15 -0
  354. data/doc/rdoc/classes/Web/Testing.src/M000060.html +15 -0
  355. data/doc/rdoc/classes/Web/Testing.src/M000061.html +15 -0
  356. data/doc/rdoc/classes/Web/Testing.src/M000062.html +15 -0
  357. data/doc/rdoc/classes/Web/Testing.src/M000063.html +18 -0
  358. data/doc/rdoc/classes/Web/Testing.src/M000089.html +15 -0
  359. data/doc/rdoc/classes/Web/Testing.src/M000090.html +25 -0
  360. data/doc/rdoc/classes/Web/Testing.src/M000091.html +15 -0
  361. data/doc/rdoc/classes/Web/Testing.src/M000092.html +25 -0
  362. data/doc/rdoc/classes/Web/Testing.src/M000093.html +57 -0
  363. data/doc/rdoc/classes/Web/Testing.src/M000094.html +15 -0
  364. data/doc/rdoc/classes/Web/Testing.src/M000095.html +15 -0
  365. data/doc/rdoc/classes/Web/Testing.src/M000096.html +15 -0
  366. data/doc/rdoc/classes/Web/Testing.src/M000097.html +15 -0
  367. data/doc/rdoc/classes/Web/Testing.src/M000098.html +15 -0
  368. data/doc/rdoc/classes/Web/Testing.src/M000099.html +15 -0
  369. data/doc/rdoc/classes/Web/Testing.src/M000100.html +15 -0
  370. data/doc/rdoc/classes/Web/Testing.src/M000101.html +18 -0
  371. data/doc/rdoc/classes/Web/Upload.html +160 -0
  372. data/doc/rdoc/classes/Web/Upload.src/M000118.html +25 -0
  373. data/doc/rdoc/classes/Web/Upload.src/M000119.html +18 -0
  374. data/doc/rdoc/classes/Web/Upload.src/M000120.html +16 -0
  375. data/doc/rdoc/classes/Web/Upload.src/M000121.html +16 -0
  376. data/doc/rdoc/classes/Web/Upload.src/M000135.html +25 -0
  377. data/doc/rdoc/classes/Web/Upload.src/M000136.html +18 -0
  378. data/doc/rdoc/classes/Web/Upload.src/M000137.html +16 -0
  379. data/doc/rdoc/classes/Web/Upload.src/M000138.html +16 -0
  380. data/doc/rdoc/classes/Web/Upload.src/M000173.html +25 -0
  381. data/doc/rdoc/classes/Web/Upload.src/M000174.html +18 -0
  382. data/doc/rdoc/classes/Web/Upload.src/M000175.html +16 -0
  383. data/doc/rdoc/classes/Web/Upload.src/M000176.html +16 -0
  384. data/doc/rdoc/classes/Web/Wiki.html +230 -0
  385. data/doc/rdoc/classes/Web/Wiki.src/M000122.html +25 -0
  386. data/doc/rdoc/classes/Web/Wiki.src/M000123.html +15 -0
  387. data/doc/rdoc/classes/Web/Wiki.src/M000124.html +26 -0
  388. data/doc/rdoc/classes/Web/Wiki.src/M000125.html +21 -0
  389. data/doc/rdoc/classes/Web/Wiki.src/M000126.html +18 -0
  390. data/doc/rdoc/classes/Web/Wiki.src/M000139.html +25 -0
  391. data/doc/rdoc/classes/Web/Wiki.src/M000140.html +15 -0
  392. data/doc/rdoc/classes/Web/Wiki.src/M000141.html +26 -0
  393. data/doc/rdoc/classes/Web/Wiki.src/M000142.html +21 -0
  394. data/doc/rdoc/classes/Web/Wiki.src/M000143.html +18 -0
  395. data/doc/rdoc/classes/Web/Wiki.src/M000177.html +25 -0
  396. data/doc/rdoc/classes/Web/Wiki.src/M000178.html +15 -0
  397. data/doc/rdoc/classes/Web/Wiki.src/M000179.html +26 -0
  398. data/doc/rdoc/classes/Web/Wiki.src/M000180.html +21 -0
  399. data/doc/rdoc/classes/Web/Wiki.src/M000181.html +18 -0
  400. data/doc/rdoc/created.rid +1 -0
  401. data/doc/rdoc/files/README.html +232 -0
  402. data/doc/rdoc/files/doc/apache_cgi_txt.html +90 -0
  403. data/doc/rdoc/files/doc/fastcgi_txt.html +86 -0
  404. data/doc/rdoc/files/doc/mod_ruby_txt.html +78 -0
  405. data/doc/rdoc/files/doc/webrick_txt.html +79 -0
  406. data/doc/rdoc/files/doc/windows_cgi_txt.html +70 -0
  407. data/doc/rdoc/files/examples/examples_rdoc.html +73 -0
  408. data/doc/rdoc/files/lib/web/cgi_rb.html +75 -0
  409. data/doc/rdoc/files/lib/web/info_rb.html +67 -0
  410. data/doc/rdoc/files/lib/web/mime_rb.html +67 -0
  411. data/doc/rdoc/files/lib/web/parser_rb.html +73 -0
  412. data/doc/rdoc/files/lib/web/phprb_rb.html +69 -0
  413. data/doc/rdoc/files/lib/web/session_rb.html +73 -0
  414. data/doc/rdoc/files/lib/web/stringio_rb.html +73 -0
  415. data/doc/rdoc/files/lib/web/template_rb.html +73 -0
  416. data/doc/rdoc/files/lib/web/test_script_rb.html +67 -0
  417. data/doc/rdoc/files/lib/web/testing_rb.html +67 -0
  418. data/doc/rdoc/files/lib/web/upload_rb.html +73 -0
  419. data/doc/rdoc/files/lib/web/wiki_rb.html +79 -0
  420. data/doc/rdoc/files/lib/web_rb.html +92 -0
  421. data/doc/rdoc/files/lib/web_rb.src/M000001.html +15 -0
  422. data/doc/rdoc/fr_class_index.html +47 -0
  423. data/doc/rdoc/fr_file_index.html +56 -0
  424. data/doc/rdoc/fr_method_index.html +185 -0
  425. data/doc/rdoc/index.html +22 -0
  426. data/doc/rdoc/rdoc-style.css +99 -0
  427. data/doc/webrick.txt +3 -3
  428. data/doc/webrick.txt~ +23 -0
  429. data/doc/windows_cgi.txt +9 -0
  430. data/doc/windows_cgi.txt~ +23 -0
  431. data/examples/hello.world.narf +5 -0
  432. data/examples/hello.world.rb +2 -4
  433. data/examples/{session.rb → session.narf} +3 -6
  434. data/examples/test/test.hello.world.rb +5 -1
  435. data/examples/test/test.session.rb +1 -1
  436. data/lib/web.rb +74 -49
  437. data/lib/web.rb~ +372 -0
  438. data/lib/web/action.rb +77 -76
  439. data/lib/web/action.rb~ +83 -0
  440. data/lib/web/cgi.rb +109 -57
  441. data/lib/web/cgi.rb~ +695 -0
  442. data/lib/web/htmltools/xmltree.rb~ +160 -0
  443. data/lib/web/htmltools/xpath.rb~ +71 -0
  444. data/lib/web/info.rb +290 -0
  445. data/lib/web/info.rb~ +293 -0
  446. data/lib/web/mime.rb +29 -24
  447. data/lib/web/mime.rb~ +82 -0
  448. data/lib/web/nrb.rb~ +473 -0
  449. data/lib/web/phprb.rb +481 -0
  450. data/lib/web/phprb.rb~ +478 -0
  451. data/lib/web/resources/highlight_table.js +37 -0
  452. data/lib/web/resources/message_template.html +22 -0
  453. data/lib/web/resources/message_template.html~ +10 -0
  454. data/lib/web/resources/narf-logo.gif +0 -0
  455. data/lib/web/resources/narf-styles.css +1 -0
  456. data/lib/web/resources/narf-styles.css~ +1 -0
  457. data/lib/web/runnarfile.rb~ +10 -0
  458. data/lib/web/runner.rb +68 -17
  459. data/lib/web/runner.rb~ +80 -0
  460. data/lib/web/sapi/apache.rb +87 -0
  461. data/lib/web/sapi/apache.rb~ +86 -0
  462. data/lib/web/sapi/fastcgi.rb +1 -1
  463. data/lib/web/sapi/fastcgi.rb~ +26 -0
  464. data/lib/web/sapi/webrick.rb +20 -28
  465. data/lib/web/sapi/webrick.rb~ +82 -0
  466. data/lib/web/session.rb +9 -1
  467. data/lib/web/stringio.rb +78 -0
  468. data/lib/web/template.rb~ +615 -0
  469. data/lib/web/test_script.rb~ +369 -0
  470. data/lib/web/testing.rb +10 -10
  471. data/lib/web/testing.rb~ +546 -0
  472. data/lib/web/wiki.rb +2 -2
  473. data/lib/web/wiki.rb~ +520 -0
  474. data/lib/web/wiki/resources/htmlarea/ChangeLog +1185 -0
  475. data/lib/web/wiki/resources/htmlarea/dialog.js +72 -0
  476. data/lib/web/wiki/resources/htmlarea/examples/2-areas.cgi +16 -0
  477. data/lib/web/wiki/resources/htmlarea/examples/2-areas.html +158 -0
  478. data/lib/web/wiki/resources/htmlarea/examples/context-menu.html +95 -0
  479. data/lib/web/wiki/resources/htmlarea/examples/core.html +184 -0
  480. data/lib/web/wiki/resources/htmlarea/examples/css.html +88 -0
  481. data/lib/web/wiki/resources/htmlarea/examples/custom.css +29 -0
  482. data/lib/web/wiki/resources/htmlarea/examples/full-page.html +75 -0
  483. data/lib/web/wiki/resources/htmlarea/examples/fully-loaded.html +248 -0
  484. data/lib/web/wiki/resources/htmlarea/examples/index.html +40 -0
  485. data/lib/web/wiki/resources/htmlarea/examples/spell-checker.html +132 -0
  486. data/lib/web/wiki/resources/htmlarea/examples/table-operations.html +116 -0
  487. data/lib/web/wiki/resources/htmlarea/examples/test.cgi +21 -0
  488. data/lib/web/wiki/resources/htmlarea/htmlarea.css +180 -0
  489. data/lib/web/wiki/resources/htmlarea/htmlarea.js +2175 -0
  490. data/lib/web/wiki/resources/htmlarea/images/ed_about.gif +0 -0
  491. data/lib/web/wiki/resources/htmlarea/images/ed_align_center.gif +0 -0
  492. data/lib/web/wiki/resources/htmlarea/images/ed_align_justify.gif +0 -0
  493. data/lib/web/wiki/resources/htmlarea/images/ed_align_left.gif +0 -0
  494. data/lib/web/wiki/resources/htmlarea/images/ed_align_right.gif +0 -0
  495. data/lib/web/wiki/resources/htmlarea/images/ed_blank.gif +0 -0
  496. data/lib/web/wiki/resources/htmlarea/images/ed_charmap.gif +0 -0
  497. data/lib/web/wiki/resources/htmlarea/images/ed_color_bg.gif +0 -0
  498. data/lib/web/wiki/resources/htmlarea/images/ed_color_fg.gif +0 -0
  499. data/lib/web/wiki/resources/htmlarea/images/ed_copy.gif +0 -0
  500. data/lib/web/wiki/resources/htmlarea/images/ed_custom.gif +0 -0
  501. data/lib/web/wiki/resources/htmlarea/images/ed_cut.gif +0 -0
  502. data/lib/web/wiki/resources/htmlarea/images/ed_delete.gif +0 -0
  503. data/lib/web/wiki/resources/htmlarea/images/ed_format_bold.gif +0 -0
  504. data/lib/web/wiki/resources/htmlarea/images/ed_format_italic.gif +0 -0
  505. data/lib/web/wiki/resources/htmlarea/images/ed_format_strike.gif +0 -0
  506. data/lib/web/wiki/resources/htmlarea/images/ed_format_sub.gif +0 -0
  507. data/lib/web/wiki/resources/htmlarea/images/ed_format_sup.gif +0 -0
  508. data/lib/web/wiki/resources/htmlarea/images/ed_format_underline.gif +0 -0
  509. data/lib/web/wiki/resources/htmlarea/images/ed_help.gif +0 -0
  510. data/lib/web/wiki/resources/htmlarea/images/ed_hr.gif +0 -0
  511. data/lib/web/wiki/resources/htmlarea/images/ed_html.gif +0 -0
  512. data/lib/web/wiki/resources/htmlarea/images/ed_image.gif +0 -0
  513. data/lib/web/wiki/resources/htmlarea/images/ed_indent_less.gif +0 -0
  514. data/lib/web/wiki/resources/htmlarea/images/ed_indent_more.gif +0 -0
  515. data/lib/web/wiki/resources/htmlarea/images/ed_left_to_right.gif +0 -0
  516. data/lib/web/wiki/resources/htmlarea/images/ed_link.gif +0 -0
  517. data/lib/web/wiki/resources/htmlarea/images/ed_list_bullet.gif +0 -0
  518. data/lib/web/wiki/resources/htmlarea/images/ed_list_num.gif +0 -0
  519. data/lib/web/wiki/resources/htmlarea/images/ed_paste.gif +0 -0
  520. data/lib/web/wiki/resources/htmlarea/images/ed_redo.gif +0 -0
  521. data/lib/web/wiki/resources/htmlarea/images/ed_right_to_left.gif +0 -0
  522. data/lib/web/wiki/resources/htmlarea/images/ed_save.gif +0 -0
  523. data/lib/web/wiki/resources/htmlarea/images/ed_show_border.gif +0 -0
  524. data/lib/web/wiki/resources/htmlarea/images/ed_splitcel.gif +0 -0
  525. data/lib/web/wiki/resources/htmlarea/images/ed_undo.gif +0 -0
  526. data/lib/web/wiki/resources/htmlarea/images/fullscreen_maximize.gif +0 -0
  527. data/lib/web/wiki/resources/htmlarea/images/fullscreen_minimize.gif +0 -0
  528. data/lib/web/wiki/resources/htmlarea/images/insert_table.gif +0 -0
  529. data/lib/web/wiki/resources/htmlarea/index.html +199 -0
  530. data/lib/web/wiki/resources/htmlarea/lang/b5.js +36 -0
  531. data/lib/web/wiki/resources/htmlarea/lang/cz.js +63 -0
  532. data/lib/web/wiki/resources/htmlarea/lang/da.js +38 -0
  533. data/lib/web/wiki/resources/htmlarea/lang/de.js +54 -0
  534. data/lib/web/wiki/resources/htmlarea/lang/ee.js +63 -0
  535. data/lib/web/wiki/resources/htmlarea/lang/el.js +75 -0
  536. data/lib/web/wiki/resources/htmlarea/lang/en.js +88 -0
  537. data/lib/web/wiki/resources/htmlarea/lang/es.js +51 -0
  538. data/lib/web/wiki/resources/htmlarea/lang/fi.js +46 -0
  539. data/lib/web/wiki/resources/htmlarea/lang/fr.js +61 -0
  540. data/lib/web/wiki/resources/htmlarea/lang/gb.js +36 -0
  541. data/lib/web/wiki/resources/htmlarea/lang/he.js +63 -0
  542. data/lib/web/wiki/resources/htmlarea/lang/hu.js +63 -0
  543. data/lib/web/wiki/resources/htmlarea/lang/it.js +54 -0
  544. data/lib/web/wiki/resources/htmlarea/lang/ja-euc.js +37 -0
  545. data/lib/web/wiki/resources/htmlarea/lang/ja-jis.js +37 -0
  546. data/lib/web/wiki/resources/htmlarea/lang/ja-sjis.js +37 -0
  547. data/lib/web/wiki/resources/htmlarea/lang/ja-utf8.js +37 -0
  548. data/lib/web/wiki/resources/htmlarea/lang/lt.js +55 -0
  549. data/lib/web/wiki/resources/htmlarea/lang/lv.js +55 -0
  550. data/lib/web/wiki/resources/htmlarea/lang/nb.js +36 -0
  551. data/lib/web/wiki/resources/htmlarea/lang/nl.js +90 -0
  552. data/lib/web/wiki/resources/htmlarea/lang/no.js +79 -0
  553. data/lib/web/wiki/resources/htmlarea/lang/pl.js +36 -0
  554. data/lib/web/wiki/resources/htmlarea/lang/pt_br.js +37 -0
  555. data/lib/web/wiki/resources/htmlarea/lang/ro.js +80 -0
  556. data/lib/web/wiki/resources/htmlarea/lang/ru.js +63 -0
  557. data/lib/web/wiki/resources/htmlarea/lang/se.js +38 -0
  558. data/lib/web/wiki/resources/htmlarea/lang/si.js +63 -0
  559. data/lib/web/wiki/resources/htmlarea/lang/vn.js +51 -0
  560. data/lib/web/wiki/resources/htmlarea/license.txt +30 -0
  561. data/lib/web/wiki/resources/htmlarea/plugins/CSS/css.js +116 -0
  562. data/lib/web/wiki/resources/htmlarea/plugins/CSS/lang/en.js +2 -0
  563. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/context-menu.js +416 -0
  564. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/de.js +59 -0
  565. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/el.js +57 -0
  566. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/en.js +66 -0
  567. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/nl.js +66 -0
  568. data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/menu.css +64 -0
  569. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/full-page.js +143 -0
  570. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/img/docprop.gif +0 -0
  571. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/lang/en.js +25 -0
  572. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/lang/ro.js +25 -0
  573. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/popups/docprop.html +131 -0
  574. data/lib/web/wiki/resources/htmlarea/plugins/FullPage/test.html +89 -0
  575. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/img/spell-check.gif +0 -0
  576. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/cz.js +37 -0
  577. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/da.js +37 -0
  578. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/de.js +28 -0
  579. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/en.js +38 -0
  580. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/hu.js +37 -0
  581. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/it.js +28 -0
  582. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/ro.js +37 -0
  583. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/readme-tech.html +114 -0
  584. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi +210 -0
  585. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-style.css +10 -0
  586. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-ui.html +122 -0
  587. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-ui.js +397 -0
  588. data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-checker.js +79 -0
  589. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-delete.gif +0 -0
  590. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-insert-after.gif +0 -0
  591. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-insert-before.gif +0 -0
  592. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-merge.gif +0 -0
  593. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-prop.gif +0 -0
  594. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-split.gif +0 -0
  595. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-delete.gif +0 -0
  596. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-insert-after.gif +0 -0
  597. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-insert-before.gif +0 -0
  598. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-split.gif +0 -0
  599. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-delete.gif +0 -0
  600. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-insert-above.gif +0 -0
  601. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-insert-under.gif +0 -0
  602. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-prop.gif +0 -0
  603. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-split.gif +0 -0
  604. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/table-prop.gif +0 -0
  605. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/cz.js +90 -0
  606. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/da.js +90 -0
  607. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/de.js +81 -0
  608. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/el.js +81 -0
  609. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/en.js +90 -0
  610. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/fi.js +66 -0
  611. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/hu.js +63 -0
  612. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/it.js +81 -0
  613. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/nl.js +90 -0
  614. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/no.js +91 -0
  615. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/ro.js +90 -0
  616. data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/table-operations.js +1160 -0
  617. data/lib/web/wiki/resources/htmlarea/popupdiv.js +369 -0
  618. data/lib/web/wiki/resources/htmlarea/popups/about.html +378 -0
  619. data/lib/web/wiki/resources/htmlarea/popups/blank.html +2 -0
  620. data/lib/web/wiki/resources/htmlarea/popups/custom2.html +35 -0
  621. data/lib/web/wiki/resources/htmlarea/popups/editor_help.html +16 -0
  622. data/lib/web/wiki/resources/htmlarea/popups/fullscreen.html +133 -0
  623. data/lib/web/wiki/resources/htmlarea/popups/insert_image.html +191 -0
  624. data/lib/web/wiki/resources/htmlarea/popups/insert_table.html +174 -0
  625. data/lib/web/wiki/resources/htmlarea/popups/link.html +142 -0
  626. data/lib/web/wiki/resources/htmlarea/popups/old-fullscreen.html +131 -0
  627. data/lib/web/wiki/resources/htmlarea/popups/old_insert_image.html +206 -0
  628. data/lib/web/wiki/resources/htmlarea/popups/popup.js +109 -0
  629. data/lib/web/wiki/resources/htmlarea/popups/select_color.html +347 -0
  630. data/lib/web/wiki/resources/htmlarea/popupwin.js +139 -0
  631. data/lib/web/wiki/resources/htmlarea/reference.html +523 -0
  632. data/lib/web/wiki/resources/htmlarea/release-notes.html +165 -0
  633. data/lib/web/{writableio.rb → writableio.rb~} +0 -0
  634. data/narf.gemspec +3 -3
  635. data/narf.gemspec~ +40 -0
  636. data/sapi/narf.c +52 -0
  637. data/sapi/narf.c~ +55 -0
  638. data/sapi/win/compile.bat +25 -0
  639. data/sapi/win/config.h +91 -0
  640. data/sapi/win/narf.c +29 -0
  641. data/sapi/win/narf.exe +0 -0
  642. data/scripts/makedist.rb +17 -9
  643. data/test/{bufferedtestrunner.rb → cgi/bufferedtestrunner.rb~} +1 -1
  644. data/test/{mod_ruby_stub.rb → cgi/mod_ruby_stub.rb} +0 -0
  645. data/test/{test.action.rb → cgi/test.action.rb} +21 -17
  646. data/test/cgi/test.action.rb~ +147 -0
  647. data/test/{test.assertinclude.rb → cgi/test.assertinclude.rb} +0 -0
  648. data/test/{test.formreader-2.0.rb → cgi/test.formreader-2.0.rb} +1 -1
  649. data/test/{test.formreader.rb → cgi/test.formreader.rb} +0 -0
  650. data/test/{test.mime-type.rb → cgi/test.mime-type.rb} +0 -0
  651. data/test/cgi/test.narf.cgi.rb +104 -0
  652. data/test/{test.narf.cgi.rb → cgi/test.narf.cgi.rb~} +0 -0
  653. data/test/cgi/test.request.rb +363 -0
  654. data/test/{test.request.rb → cgi/test.request.rb~} +9 -9
  655. data/test/{test.response.rb → cgi/test.response.rb} +39 -2
  656. data/test/cgi/test.response.rb~ +621 -0
  657. data/test/cgi/test.runner.rb +67 -0
  658. data/test/cgi/test.runner.rb~ +67 -0
  659. data/test/{test.session.rb → cgi/test.session.rb} +0 -0
  660. data/test/{test.simpledispatcher.rb → cgi/test.simpledispatcher.rb} +22 -24
  661. data/test/{test.tagparser.rb → cgi/test.tagparser.rb} +0 -0
  662. data/test/{test.template.rb → cgi/test.template.rb} +2 -2
  663. data/test/cgi/test.testing2.rb +340 -0
  664. data/test/{test.testing2.rb → cgi/test.testing2.rb~} +2 -2
  665. data/test/cgi/test.web.test.rb +463 -0
  666. data/test/{test.web.test.rb → cgi/test.web.test.rb~} +0 -0
  667. data/test/cgi/test_send_file.txt +1 -0
  668. data/test/cgi/test_send_file.txt~ +1 -0
  669. data/test/{testfiles → cgi/testfiles}/basictemplate.tpl +0 -0
  670. data/test/{testfiles → cgi/testfiles}/explorer5.multipart.data +0 -0
  671. data/test/{testfiles → cgi/testfiles}/form.html +0 -0
  672. data/test/{testfiles → cgi/testfiles}/mac_ie_env.yaml +0 -0
  673. data/test/{testfiles → cgi/testfiles}/mac_ie_stdin.bin +0 -0
  674. data/test/{testfiles → cgi/testfiles}/mac_safari_stdin.bin +0 -0
  675. data/test/{testfiles → cgi/testfiles}/mozilla.multipart.data +0 -0
  676. data/test/{testfiles → cgi/testfiles}/netscape4.multipart.data +0 -0
  677. data/test/testfiles/pic hydra.png b/data/test/cgi/testfiles/pic → hydra.png +0 -0
  678. data/test/{testfiles → cgi/testfiles}/post.data +0 -0
  679. data/test/{testfiles → cgi/testfiles}/print.text +0 -0
  680. data/test/{testfiles → cgi/testfiles}/text +0 -0
  681. data/test/{webunit/test_site/multipart.html → installation/htdocs/multipart.html~} +58 -59
  682. data/test/installation/htdocs/test_error.cgi +3 -0
  683. data/test/installation/htdocs/test_error.cgi~ +7 -0
  684. data/test/installation/htdocs/test_install.cgi +3 -0
  685. data/test/installation/htdocs/test_install.cgi~ +3 -0
  686. data/test/installation/htdocs/test_install.narf +3 -0
  687. data/test/installation/htdocs/test_install.narf~ +3 -0
  688. data/test/installation/htdocs/test_install.rb +3 -0
  689. data/test/installation/htdocs/test_install.rb~ +3 -0
  690. data/test/installation/runwebtest.rb +5 -0
  691. data/test/{webunit → installation}/test_cookie.rb +6 -6
  692. data/test/installation/test_cookie.rb~ +128 -0
  693. data/test/installation/test_form.rb +43 -0
  694. data/test/{webunit/test_form.rb → installation/test_form.rb~} +12 -12
  695. data/test/{webunit → installation}/test_multipart.rb +7 -9
  696. data/test/installation/test_multipart.rb~ +51 -0
  697. data/test/installation/test_response.rb +35 -0
  698. data/test/{webunit/resources → installation}/uploadfile1.txt +0 -0
  699. data/test/{webunit/resources → installation}/uploadfile2.txt +0 -0
  700. data/test/wiki/test.tarpit.rb +4 -4
  701. data/test/wiki/test.tarpit.rb~ +56 -0
  702. metadata +738 -145
  703. data/lib/web/buffer.rb +0 -20
  704. data/lib/web/unit.rb +0 -27
  705. data/lib/web/unit/assert.rb +0 -154
  706. data/lib/web/unit/converter.rb +0 -148
  707. data/lib/web/unit/cookie.rb +0 -120
  708. data/lib/web/unit/domwalker.rb +0 -187
  709. data/lib/web/unit/exception.rb +0 -15
  710. data/lib/web/unit/form.rb +0 -118
  711. data/lib/web/unit/formatter.rb +0 -314
  712. data/lib/web/unit/frame.rb +0 -39
  713. data/lib/web/unit/html-parser.rb +0 -432
  714. data/lib/web/unit/htmlelem.rb +0 -124
  715. data/lib/web/unit/htmlrepair.rb +0 -116
  716. data/lib/web/unit/htmlsplit.rb +0 -840
  717. data/lib/web/unit/image.rb +0 -27
  718. data/lib/web/unit/jscript.rb +0 -32
  719. data/lib/web/unit/link.rb +0 -35
  720. data/lib/web/unit/params.rb +0 -323
  721. data/lib/web/unit/parser.rb +0 -226
  722. data/lib/web/unit/resources/assert.html +0 -101
  723. data/lib/web/unit/resources/auth/index.html +0 -5
  724. data/lib/web/unit/resources/badtags.html +0 -7
  725. data/lib/web/unit/resources/cookie.cgi +0 -33
  726. data/lib/web/unit/resources/document.xml +0 -13
  727. data/lib/web/unit/resources/form.html +0 -150
  728. data/lib/web/unit/resources/frame-0.html +0 -10
  729. data/lib/web/unit/resources/frame-1.html +0 -10
  730. data/lib/web/unit/resources/frame.html +0 -10
  731. data/lib/web/unit/resources/image.html +0 -17
  732. data/lib/web/unit/resources/images/x.gif +0 -0
  733. data/lib/web/unit/resources/images/y.gif +0 -0
  734. data/lib/web/unit/resources/jscript-0.html +0 -10
  735. data/lib/web/unit/resources/jscript-1.html +0 -10
  736. data/lib/web/unit/resources/jscript.html +0 -19
  737. data/lib/web/unit/resources/link.html +0 -19
  738. data/lib/web/unit/resources/multipart.cgi +0 -28
  739. data/lib/web/unit/resources/multipart.html +0 -74
  740. data/lib/web/unit/resources/params.html +0 -65
  741. data/lib/web/unit/resources/redirect.cgi +0 -13
  742. data/lib/web/unit/resources/response.html +0 -67
  743. data/lib/web/unit/resources/simple.cgi +0 -14
  744. data/lib/web/unit/resources/stock.cgi +0 -35
  745. data/lib/web/unit/resources/table.html +0 -83
  746. data/lib/web/unit/response.rb +0 -469
  747. data/lib/web/unit/runtest.rb +0 -44
  748. data/lib/web/unit/sgml-parser.rb +0 -336
  749. data/lib/web/unit/table.rb +0 -150
  750. data/lib/web/unit/testcase.rb +0 -49
  751. data/lib/web/unit/ui/cui/testrunner.rb +0 -52
  752. data/lib/web/unit/utils.rb +0 -70
  753. data/lib/web/unit/webunit.rb +0 -28
  754. data/sapi/apache_cgi/src/narf.c +0 -13
  755. data/test/stringio.rb +0 -2
  756. data/test/test.app.rb +0 -0
  757. data/test/webunit/dont_get_it.test_webunit.rb +0 -27
  758. data/test/webunit/ref +0 -38
  759. data/test/webunit/test_assert.rb +0 -169
  760. data/test/webunit/test_domwalker.rb +0 -83
  761. data/test/webunit/test_frame.rb +0 -43
  762. data/test/webunit/test_htmlelem.rb +0 -75
  763. data/test/webunit/test_image.rb +0 -46
  764. data/test/webunit/test_jscript.rb +0 -58
  765. data/test/webunit/test_link.rb +0 -87
  766. data/test/webunit/test_params.rb +0 -212
  767. data/test/webunit/test_parser.rb +0 -31
  768. data/test/webunit/test_response.rb +0 -145
  769. data/test/webunit/test_site/assert.html +0 -101
  770. data/test/webunit/test_site/auth/index.html +0 -5
  771. data/test/webunit/test_site/badtags.html +0 -7
  772. data/test/webunit/test_site/cookie.cgi +0 -37
  773. data/test/webunit/test_site/document.xml +0 -13
  774. data/test/webunit/test_site/form.html +0 -150
  775. data/test/webunit/test_site/frame-0.html +0 -10
  776. data/test/webunit/test_site/frame-1.html +0 -10
  777. data/test/webunit/test_site/frame.html +0 -10
  778. data/test/webunit/test_site/image.html +0 -17
  779. data/test/webunit/test_site/images/x.gif +0 -0
  780. data/test/webunit/test_site/images/y.gif +0 -0
  781. data/test/webunit/test_site/jscript-0.html +0 -10
  782. data/test/webunit/test_site/jscript-1.html +0 -10
  783. data/test/webunit/test_site/jscript.html +0 -19
  784. data/test/webunit/test_site/link.html +0 -19
  785. data/test/webunit/test_site/multipart.cgi +0 -27
  786. data/test/webunit/test_site/params.html +0 -65
  787. data/test/webunit/test_site/redirect.cgi +0 -14
  788. data/test/webunit/test_site/response.html +0 -67
  789. data/test/webunit/test_site/simple.cgi +0 -17
  790. data/test/webunit/test_site/stock.cgi +0 -36
  791. data/test/webunit/test_site/table.html +0 -83
  792. data/test/webunit/test_table.rb +0 -70
  793. data/test/webunit/test_utils.rb +0 -107
@@ -0,0 +1,15 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>close (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 541</span>
11
+ <span class="kw">def</span> close
12
+
13
+ <span class="kw">end</span></pre>
14
+ </body>
15
+ </html>
@@ -0,0 +1,15 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>nph? (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 546</span>
11
+ <span class="kw">def</span> nph?
12
+ @options[:nph] || <span class="re">/IIS/</span>.match(env[<span class="str">&quot;server_software&quot;</span>])
13
+ <span class="kw">end</span></pre>
14
+ </body>
15
+ </html>
@@ -0,0 +1,23 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>send_header (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 550</span>
11
+ <span class="kw">def</span> send_header( header )
12
+ send_nph_header( header ) <span class="kw">if</span> (nph?)
13
+
14
+ header.sort.each { |name, value|
15
+ value.each { |v|
16
+ output &lt;&lt; &quot;#{ name }: #{ v }\r\n&quot;
17
+ }
18
+ }
19
+
20
+ output &lt;&lt; <span class="str">&quot;\r\n&quot;</span>
21
+ <span class="kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,24 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>create (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 528</span>
11
+ <span class="kw">def</span> CGD::create(options={})
12
+ <span class="kw">case</span> CGI::server_sniff
13
+ <span class="kw">when</span> :fcgi
14
+ require <span class="str">'web/sapi/fastcgi'</span>
15
+ Web::CGD::Fastcgi.new( options )
16
+ <span class="kw">when</span> :mod_ruby
17
+ require <span class="str">'web/sapi/mod_ruby'</span>
18
+ Web::CGD::ModRuby.new( options )
19
+ <span class="kw">else</span>
20
+ CGD.new(options)
21
+ <span class="kw">end</span>
22
+ <span class="kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1,24 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>new (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 541</span>
11
+ <span class="kw">def</span> initialize(options={})
12
+ @options = options
13
+
14
+ @input = options[:in] || $stdin
15
+ @output = options[:out] || $stdout
16
+ @env = downcase_env( options[:env] || ENV )
17
+
18
+ @env[<span class="str">'document_root'</span>] = options[:document_root] || Web.get_docroot || @env[<span class="str">'document_root'</span>]
19
+ @env[<span class="str">'script_name'</span> ] = options[:script_name] || @env[<span class="str">'script_name'</span>]
20
+
21
+ parse_request
22
+ <span class="kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1,15 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>close (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 554</span>
11
+ <span class="kw">def</span> close
12
+
13
+ <span class="kw">end</span></pre>
14
+ </body>
15
+ </html>
@@ -0,0 +1,15 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>nph? (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 559</span>
11
+ <span class="kw">def</span> nph?
12
+ @options[:nph] || <span class="re">/IIS/</span>.match(env[<span class="str">&quot;server_software&quot;</span>])
13
+ <span class="kw">end</span></pre>
14
+ </body>
15
+ </html>
@@ -0,0 +1,23 @@
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
+ <title>send_header (Web::CGD)</title>
7
+ <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" />
8
+ </head>
9
+ <body bgcolor="white">
10
+ <pre><span class="cmt"># File lib/web/cgi.rb, line 563</span>
11
+ <span class="kw">def</span> send_header( header )
12
+ send_nph_header( header ) <span class="kw">if</span> (nph?)
13
+
14
+ header.sort.each { |name, value|
15
+ value.each { |v|
16
+ output &lt;&lt; &quot;#{ name }: #{ v }\r\n&quot;
17
+ }
18
+ }
19
+
20
+ output &lt;&lt; <span class="str">&quot;\r\n&quot;</span>
21
+ <span class="kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,939 @@
1
+
2
+ <?xml version="1.0" encoding="utf-8"?>
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4
+ "DTD/xhtml1-strict.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <title>Class: Web::CGI</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel=StyleSheet href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+ <script type="text/javascript" language="JavaScript">
11
+ <!--
12
+ function popCode(url) {
13
+ window.open(url, "Code",
14
+ "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
15
+ }
16
+ //-->
17
+ </script>
18
+ </head>
19
+
20
+ <body bgcolor="white">
21
+
22
+ <table summary="Information on class" width="100%" border="0" cellspacing="0">
23
+ <tr class="title-row">
24
+ <td class="big-title-font">
25
+ <sup><font color="aqua">Class</font></sup> Web::CGI
26
+ </td>
27
+ <td align="right">
28
+ <table summary="layout" cellspacing="0" cellpadding="2">
29
+ <tr valign="top">
30
+ <td class="small-title-font">In:</td>
31
+ <td class="small-title-font">
32
+ <a href="../../files/lib/web/template_rb.html" class="aqua">
33
+ lib/web/template.rb
34
+ </a>
35
+ <br />
36
+ <a href="../../files/lib/web/cgi_rb.html" class="aqua">
37
+ lib/web/cgi.rb
38
+ </a>
39
+ <br />
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <td class="small-title-font">Parent:</td>
44
+ <td class="small-title-font">
45
+ Object
46
+ </td>
47
+ </tr>
48
+ </table>
49
+ </td>
50
+ </tr>
51
+ </table>
52
+ <!-- banner header -->
53
+
54
+
55
+
56
+ <div class="description"><h2>Purpose</h2>
57
+ <p>
58
+ <a href="CGI.html">Web::CGI</a> is the core of Narf. You will find
59
+ documentation for many useful methods here. I recommend calling these
60
+ methods through the <a href="../Web.html">Web</a> module, which will manage
61
+ the current <a href="CGI.html">CGI</a> object and delegate to it.
62
+ </p>
63
+ </div>
64
+
65
+
66
+ <table summary="Methods" cellpadding="5" width="100%">
67
+ <tr><td class="tablesubtitle">Methods</td></tr>
68
+ </table>
69
+ <div class="name-list">
70
+ <a href="#M000092">[]</a>&nbsp; &nbsp;
71
+ <a href="#M000093">[]=</a>&nbsp; &nbsp;
72
+ <a href="#M000106">add_header</a>&nbsp; &nbsp;
73
+ <a href="#M000103">assert_content</a>&nbsp; &nbsp;
74
+ <a href="#M000129">assert_cookie</a>&nbsp; &nbsp;
75
+ <a href="#M000104">assert_form_includes</a>&nbsp; &nbsp;
76
+ <a href="#M000111">assert_header</a>&nbsp; &nbsp;
77
+ <a href="#M000085">cgd</a>&nbsp; &nbsp;
78
+ <a href="#M000124">charset</a>&nbsp; &nbsp;
79
+ <a href="#M000125">charset=</a>&nbsp; &nbsp;
80
+ <a href="#M000098">clear</a>&nbsp; &nbsp;
81
+ <a href="#M000105">close</a>&nbsp; &nbsp;
82
+ <a href="#M000122">content_type</a>&nbsp; &nbsp;
83
+ <a href="#M000123">content_type=</a>&nbsp; &nbsp;
84
+ <a href="#M000097">cookies</a>&nbsp; &nbsp;
85
+ <a href="#M000128">cookies_sent</a>&nbsp; &nbsp;
86
+ <a href="#M000081">create</a>&nbsp; &nbsp;
87
+ <a href="#M000082">document_root</a>&nbsp; &nbsp;
88
+ <a href="#M000117">encoding</a>&nbsp; &nbsp;
89
+ <a href="#M000118">encoding=</a>&nbsp; &nbsp;
90
+ <a href="#M000131">env</a>&nbsp; &nbsp;
91
+ <a href="#M000101">flush</a>&nbsp; &nbsp;
92
+ <a href="#M000120">full_content_type</a>&nbsp; &nbsp;
93
+ <a href="#M000080">get_cgi</a>&nbsp; &nbsp;
94
+ <a href="#M000102">get_content</a>&nbsp; &nbsp;
95
+ <a href="#M000127">get_cookie</a>&nbsp; &nbsp;
96
+ <a href="#M000107">get_header</a>&nbsp; &nbsp;
97
+ <a href="#M000110">header</a>&nbsp; &nbsp;
98
+ <a href="#M000109">header_sent?</a>&nbsp; &nbsp;
99
+ <a href="#M000096">key?</a>&nbsp; &nbsp;
100
+ <a href="#M000095">keys</a>&nbsp; &nbsp;
101
+ <a href="#M000114">location</a>&nbsp; &nbsp;
102
+ <a href="#M000115">location=</a>&nbsp; &nbsp;
103
+ <a href="#M000090">multiple_params</a>&nbsp; &nbsp;
104
+ <a href="#M000091">multiple_params=</a>&nbsp; &nbsp;
105
+ <a href="#M000086">new</a>&nbsp; &nbsp;
106
+ <a href="#M000130">nph?</a>&nbsp; &nbsp;
107
+ <a href="#M000088">params</a>&nbsp; &nbsp;
108
+ <a href="#M000089">params=</a>&nbsp; &nbsp;
109
+ <a href="#M000084">path_info</a>&nbsp; &nbsp;
110
+ <a href="#M000134">process</a>&nbsp; &nbsp;
111
+ <a href="#M000132">report_error</a>&nbsp; &nbsp;
112
+ <a href="#M000083">script_name</a>&nbsp; &nbsp;
113
+ <a href="#M000099">send_file</a>&nbsp; &nbsp;
114
+ <a href="#M000108">send_header</a>&nbsp; &nbsp;
115
+ <a href="#M000133">server_sniff</a>&nbsp; &nbsp;
116
+ <a href="#M000079">set_cgi</a>&nbsp; &nbsp;
117
+ <a href="#M000126">set_cookie</a>&nbsp; &nbsp;
118
+ <a href="#M000121">set_full_content_type</a>&nbsp; &nbsp;
119
+ <a href="#M000116">set_redirect</a>&nbsp; &nbsp;
120
+ <a href="#M000094">single_param</a>&nbsp; &nbsp;
121
+ <a href="#M000119">split_content_type</a>&nbsp; &nbsp;
122
+ <a href="#M000112">status</a>&nbsp; &nbsp;
123
+ <a href="#M000113">status=</a>&nbsp; &nbsp;
124
+ <a href="#M000087">trace_output</a>&nbsp; &nbsp;
125
+ <a href="#M000100">unbuffered?</a>&nbsp; &nbsp;
126
+ </div>
127
+
128
+
129
+ <table summary="Attributes" cellpadding="5" width="100%">
130
+ <tr><td class="tablesubtitle">Attributes</td></tr>
131
+ </table>
132
+ <table summary="Attribute details" cellspacing="5">
133
+ <tr valign="top">
134
+ <td class="attr-name">options</td>
135
+ <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
136
+ <td></td>
137
+ </tr>
138
+ <tr valign="top">
139
+ <td class="attr-name">session</td>
140
+ <td align="center" class="attr-rw">&nbsp;[R]&nbsp;</td>
141
+ <td></td>
142
+ </tr>
143
+ </table>
144
+
145
+
146
+ <table summary="Included modules" cellpadding="5" width="100%">
147
+ <tr><td class="tablesubtitle">Included modules</td></tr>
148
+ </table>
149
+ <div class="name-list">
150
+ <span class="method-name">TemplatePrinter</span>
151
+ <span class="method-name">Test::Unit::Assertions</span>
152
+ </div>
153
+
154
+ <table summary="Method list" cellpadding="5" width="100%">
155
+ <tr><td class="tablesubtitle">Public Class methods</td></tr>
156
+ </table>
157
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
158
+ <tr><td class="methodtitle">
159
+ <a name="M000079"></a>
160
+ <a href="CGI.src/M000079.html" target="Code" class="methodtitle"
161
+ onClick="popCode('CGI.src/M000079.html');return false;">
162
+ <b>set_cgi</b>(cgi)
163
+ </a>
164
+ </td></tr>
165
+ </table>
166
+ <div class="description">
167
+ <p>
168
+ set the singleton cgi object for <a href="../Web.html">Web</a>
169
+ </p>
170
+ </div>
171
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
172
+ <tr><td class="methodtitle">
173
+ <a name="M000080"></a>
174
+ <a href="CGI.src/M000080.html" target="Code" class="methodtitle"
175
+ onClick="popCode('CGI.src/M000080.html');return false;">
176
+ <b>get_cgi</b>( options={} )
177
+ </a>
178
+ </td></tr>
179
+ </table>
180
+ <div class="description">
181
+ <p>
182
+ get the singleton cgi object for <a href="../Web.html">Web</a>
183
+ </p>
184
+ </div>
185
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
186
+ <tr><td class="methodtitle">
187
+ <a name="M000081"></a>
188
+ <a href="CGI.src/M000081.html" target="Code" class="methodtitle"
189
+ onClick="popCode('CGI.src/M000081.html');return false;">
190
+ <b>create</b>(options = {})
191
+ </a>
192
+ </td></tr>
193
+ </table>
194
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
195
+ <tr><td class="methodtitle">
196
+ <a name="M000086"></a>
197
+ <a href="CGI.src/M000086.html" target="Code" class="methodtitle"
198
+ onClick="popCode('CGI.src/M000086.html');return false;">
199
+ <b>new</b>(options={})
200
+ </a>
201
+ </td></tr>
202
+ </table>
203
+ <div class="description">
204
+ <p>
205
+ Construct cgi with the given options. Defaults are in parenthesis. These
206
+ options are alpha and due for change as narf supports different backends.
207
+ </p>
208
+ <dl>
209
+ <dt>:session</dt><dd>set the session to the given hash (<a
210
+ href="Session.html">Web::Session</a>).
211
+
212
+ </dd>
213
+ <dt>:cgd</dt><dd>pass in a <a href="CGD.html">CGD</a> driver
214
+
215
+ </dd>
216
+ <dt>:env</dt><dd>pass in the ENV variables
217
+
218
+ </dd>
219
+ <dt>:in</dt><dd>set the input stream to the given IO ($stdin).
220
+
221
+ </dd>
222
+ <dt>:out</dt><dd>set the output stream to the given IO ($stdout).
223
+
224
+ </dd>
225
+ <dt>:unbuffered</dt><dd>flag whether output should(n&#8217;t) be buffered. (false)
226
+
227
+ </dd>
228
+ <dt>:<a href="CGI.html#M000084">path_info</a></dt><dd><a href="CGI.html#M000084">path_info</a> is the part of the query that is
229
+ after the script, i.e. the Narf.html in /wiki.rb/Narf.html (Request.<a
230
+ href="CGI.html#M000084">path_info</a>)
231
+
232
+ </dd>
233
+ <dt>:<a href="CGI.html#M000082">document_root</a></dt><dd>Document root of website. (Request.<a
234
+ href="CGI.html#M000082">document_root</a>)
235
+
236
+ </dd>
237
+ <dt>:<a href="CGI.html#M000083">script_name</a></dt><dd>Script name, ie /wiki.rb in /wiki.rb/Narf.html (Request.<a
238
+ href="CGI.html#M000083">script_name</a>)
239
+
240
+ </dd>
241
+ </dl>
242
+ </div>
243
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
244
+ <tr><td class="methodtitle">
245
+ <a name="M000133"></a>
246
+ <a href="CGI.src/M000133.html" target="Code" class="methodtitle"
247
+ onClick="popCode('CGI.src/M000133.html');return false;">
248
+ <b>server_sniff</b>()
249
+ </a>
250
+ </td></tr>
251
+ </table>
252
+ <div class="description">
253
+ <p>
254
+ returns one of these values: :cgi, :fastcgi, :mod_ruby, :webrick
255
+ </p>
256
+ </div>
257
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
258
+ <tr><td class="methodtitle">
259
+ <a name="M000134"></a>
260
+ <a href="CGI.src/M000134.html" target="Code" class="methodtitle"
261
+ onClick="popCode('CGI.src/M000134.html');return false;">
262
+ <b>process</b>( options={}, &amp;block )
263
+ </a>
264
+ </td></tr>
265
+ </table>
266
+ <table summary="Method list" cellpadding="5" width="100%">
267
+ <tr><td class="tablesubtitle">Public Instance methods</td></tr>
268
+ </table>
269
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
270
+ <tr><td class="methodtitle">
271
+ <a name="M000082"></a>
272
+ <a href="CGI.src/M000082.html" target="Code" class="methodtitle"
273
+ onClick="popCode('CGI.src/M000082.html');return false;">
274
+ <b>document_root</b>()
275
+ </a>
276
+ </td></tr>
277
+ </table>
278
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
279
+ <tr><td class="methodtitle">
280
+ <a name="M000083"></a>
281
+ <a href="CGI.src/M000083.html" target="Code" class="methodtitle"
282
+ onClick="popCode('CGI.src/M000083.html');return false;">
283
+ <b>script_name</b>()
284
+ </a>
285
+ </td></tr>
286
+ </table>
287
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
288
+ <tr><td class="methodtitle">
289
+ <a name="M000084"></a>
290
+ <a href="CGI.src/M000084.html" target="Code" class="methodtitle"
291
+ onClick="popCode('CGI.src/M000084.html');return false;">
292
+ <b>path_info</b>()
293
+ </a>
294
+ </td></tr>
295
+ </table>
296
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
297
+ <tr><td class="methodtitle">
298
+ <a name="M000085"></a>
299
+ <a href="CGI.src/M000085.html" target="Code" class="methodtitle"
300
+ onClick="popCode('CGI.src/M000085.html');return false;">
301
+ <b>cgd</b>()
302
+ </a>
303
+ </td></tr>
304
+ </table>
305
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
306
+ <tr><td class="methodtitle">
307
+ <a name="M000087"></a>
308
+ <a href="CGI.src/M000087.html" target="Code" class="methodtitle"
309
+ onClick="popCode('CGI.src/M000087.html');return false;">
310
+ <b>trace_output</b>()
311
+ </a>
312
+ </td></tr>
313
+ </table>
314
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
315
+ <tr><td class="methodtitle">
316
+ <a name="M000088"></a>
317
+ <a href="CGI.src/M000088.html" target="Code" class="methodtitle"
318
+ onClick="popCode('CGI.src/M000088.html');return false;">
319
+ <b>params</b>()
320
+ </a>
321
+ </td></tr>
322
+ </table>
323
+ <div class="description">
324
+ <p>
325
+ returns params as a hash of arrays
326
+ </p>
327
+ </div>
328
+ <div class="aka">
329
+ This method is also aliased as
330
+ <a href="CGI.html#M000090">multiple_params</a>
331
+ </div>
332
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
333
+ <tr><td class="methodtitle">
334
+ <a name="M000089"></a>
335
+ <a href="CGI.src/M000089.html" target="Code" class="methodtitle"
336
+ onClick="popCode('CGI.src/M000089.html');return false;">
337
+ <b>params=</b>(other)
338
+ </a>
339
+ </td></tr>
340
+ </table>
341
+ <div class="description">
342
+ <p>
343
+ set multiple params, in case you want to change the state of your app
344
+ without a round trip to the client.
345
+ </p>
346
+ </div>
347
+ <div class="aka">
348
+ This method is also aliased as
349
+ <a href="CGI.html#M000091">multiple_params=</a>
350
+ </div>
351
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
352
+ <tr><td class="methodtitle">
353
+ <a name="M000090"></a>
354
+ <b>multiple_params</b>()
355
+ </td></tr>
356
+ </table>
357
+ <div class="description">
358
+ <p>
359
+ Alias for <a href="CGI.html#M000088">params</a>
360
+ </p>
361
+ </div>
362
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
363
+ <tr><td class="methodtitle">
364
+ <a name="M000091"></a>
365
+ <b>multiple_params=</b>(other)
366
+ </td></tr>
367
+ </table>
368
+ <div class="description">
369
+ <p>
370
+ Alias for <a href="CGI.html#M000089">params=</a>
371
+ </p>
372
+ </div>
373
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
374
+ <tr><td class="methodtitle">
375
+ <a name="M000092"></a>
376
+ <a href="CGI.src/M000092.html" target="Code" class="methodtitle"
377
+ onClick="popCode('CGI.src/M000092.html');return false;">
378
+ <b>[]</b>(key)
379
+ </a>
380
+ </td></tr>
381
+ </table>
382
+ <div class="description">
383
+ <p>
384
+ access parameters. If the key is array-style, aka param[], return the
385
+ array. Otherwise, return the joined string.
386
+ </p>
387
+ </div>
388
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
389
+ <tr><td class="methodtitle">
390
+ <a name="M000093"></a>
391
+ <a href="CGI.src/M000093.html" target="Code" class="methodtitle"
392
+ onClick="popCode('CGI.src/M000093.html');return false;">
393
+ <b>[]=</b>(key, value)
394
+ </a>
395
+ </td></tr>
396
+ </table>
397
+ <div class="description">
398
+ <p>
399
+ set param at the given key. This is useful to change state in your app
400
+ without asking the browser to redirect
401
+ </p>
402
+ </div>
403
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
404
+ <tr><td class="methodtitle">
405
+ <a name="M000094"></a>
406
+ <a href="CGI.src/M000094.html" target="Code" class="methodtitle"
407
+ onClick="popCode('CGI.src/M000094.html');return false;">
408
+ <b>single_param</b>(key)
409
+ </a>
410
+ </td></tr>
411
+ </table>
412
+ <div class="description">
413
+ <p>
414
+ If params[key][0] is a <a href="Upload.html">Web::Upload</a>, returns that
415
+ value. Otherwise it returns params[key].join( &quot;,&quot; )
416
+ </p>
417
+ </div>
418
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
419
+ <tr><td class="methodtitle">
420
+ <a name="M000095"></a>
421
+ <a href="CGI.src/M000095.html" target="Code" class="methodtitle"
422
+ onClick="popCode('CGI.src/M000095.html');return false;">
423
+ <b>keys</b>()
424
+ </a>
425
+ </td></tr>
426
+ </table>
427
+ <div class="description">
428
+ <p>
429
+ list the submitted params
430
+ </p>
431
+ </div>
432
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
433
+ <tr><td class="methodtitle">
434
+ <a name="M000096"></a>
435
+ <a href="CGI.src/M000096.html" target="Code" class="methodtitle"
436
+ onClick="popCode('CGI.src/M000096.html');return false;">
437
+ <b>key?</b>(key)
438
+ </a>
439
+ </td></tr>
440
+ </table>
441
+ <div class="description">
442
+ <p>
443
+ test whether a param was submitted
444
+ </p>
445
+ </div>
446
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
447
+ <tr><td class="methodtitle">
448
+ <a name="M000097"></a>
449
+ <a href="CGI.src/M000097.html" target="Code" class="methodtitle"
450
+ onClick="popCode('CGI.src/M000097.html');return false;">
451
+ <b>cookies</b>()
452
+ </a>
453
+ </td></tr>
454
+ </table>
455
+ <div class="description">
456
+ <p>
457
+ array of cookies sent by the client
458
+ </p>
459
+ </div>
460
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
461
+ <tr><td class="methodtitle">
462
+ <a name="M000098"></a>
463
+ <a href="CGI.src/M000098.html" target="Code" class="methodtitle"
464
+ onClick="popCode('CGI.src/M000098.html');return false;">
465
+ <b>clear</b>()
466
+ </a>
467
+ </td></tr>
468
+ </table>
469
+ <div class="description">
470
+ <p>
471
+ Reset output buffer. Fails if headers have been sent.
472
+ </p>
473
+ </div>
474
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
475
+ <tr><td class="methodtitle">
476
+ <a name="M000099"></a>
477
+ <a href="CGI.src/M000099.html" target="Code" class="methodtitle"
478
+ onClick="popCode('CGI.src/M000099.html');return false;">
479
+ <b>send_file</b>( filename )
480
+ </a>
481
+ </td></tr>
482
+ </table>
483
+ <div class="description">
484
+ <p>
485
+ This method will replace the contents of the output buffer by reading from
486
+ the given filename. If the content-type has not already been set, it will
487
+ try and guess an appropriate mime-type from the extension of the file.
488
+ </p>
489
+ <p>
490
+ Note: this doesn&#8217;t flush the output, you can still keep writing after
491
+ this method.
492
+ </p>
493
+ </div>
494
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
495
+ <tr><td class="methodtitle">
496
+ <a name="M000100"></a>
497
+ <a href="CGI.src/M000100.html" target="Code" class="methodtitle"
498
+ onClick="popCode('CGI.src/M000100.html');return false;">
499
+ <b>unbuffered?</b>()
500
+ </a>
501
+ </td></tr>
502
+ </table>
503
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
504
+ <tr><td class="methodtitle">
505
+ <a name="M000101"></a>
506
+ <a href="CGI.src/M000101.html" target="Code" class="methodtitle"
507
+ onClick="popCode('CGI.src/M000101.html');return false;">
508
+ <b>flush</b>()
509
+ </a>
510
+ </td></tr>
511
+ </table>
512
+ <div class="description">
513
+ <p>
514
+ send header to the client, and flush any buffered output
515
+ </p>
516
+ </div>
517
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
518
+ <tr><td class="methodtitle">
519
+ <a name="M000102"></a>
520
+ <a href="CGI.src/M000102.html" target="Code" class="methodtitle"
521
+ onClick="popCode('CGI.src/M000102.html');return false;">
522
+ <b>get_content</b>()
523
+ </a>
524
+ </td></tr>
525
+ </table>
526
+ <div class="description">
527
+ <p>
528
+ returns the body content of the response (sans headers).
529
+ </p>
530
+ </div>
531
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
532
+ <tr><td class="methodtitle">
533
+ <a name="M000103"></a>
534
+ <a href="CGI.src/M000103.html" target="Code" class="methodtitle"
535
+ onClick="popCode('CGI.src/M000103.html');return false;">
536
+ <b>assert_content</b>(expected, message=&quot;&quot;)
537
+ </a>
538
+ </td></tr>
539
+ </table>
540
+ <div class="description">
541
+ <p>
542
+ for testing: raises Test::Unit exception if content is not set to the
543
+ provided string.
544
+ </p>
545
+ </div>
546
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
547
+ <tr><td class="methodtitle">
548
+ <a name="M000104"></a>
549
+ <a href="CGI.src/M000104.html" target="Code" class="methodtitle"
550
+ onClick="popCode('CGI.src/M000104.html');return false;">
551
+ <b>assert_form_includes</b>(formname, vars)
552
+ </a>
553
+ </td></tr>
554
+ </table>
555
+ <div class="description">
556
+ <p>
557
+ assert output content contains a form that includes the given hash of
558
+ values. See <a href="Testing.html">Web::Testing</a>
559
+ </p>
560
+ </div>
561
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
562
+ <tr><td class="methodtitle">
563
+ <a name="M000105"></a>
564
+ <a href="CGI.src/M000105.html" target="Code" class="methodtitle"
565
+ onClick="popCode('CGI.src/M000105.html');return false;">
566
+ <b>close</b>()
567
+ </a>
568
+ </td></tr>
569
+ </table>
570
+ <div class="description">
571
+ <p>
572
+ flushes the output and, if applicable, saves the session
573
+ </p>
574
+ </div>
575
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
576
+ <tr><td class="methodtitle">
577
+ <a name="M000106"></a>
578
+ <a href="CGI.src/M000106.html" target="Code" class="methodtitle"
579
+ onClick="popCode('CGI.src/M000106.html');return false;">
580
+ <b>add_header</b>(name , value )
581
+ </a>
582
+ </td></tr>
583
+ </table>
584
+ <div class="description">
585
+ <p>
586
+ There&#8217;s a bit of special casing in here, for the follow reasons:
587
+ </p>
588
+ <ul>
589
+ <li>some headers should only be sent once. If you add Content-Encoding,
590
+ Location, or Status, it will overwrite the old headers instead of adding a
591
+ second header
592
+
593
+ </li>
594
+ <li>content-type is a strange header. It is a combination of the content-type
595
+ and charset attributes. setting content-type will cause the content-type
596
+ attribute to be set; setting charset will cause the charset attribute to be
597
+ set.
598
+
599
+ <p>
600
+ I don&#8217;t know if this is the correct behavior. Should this method
601
+ assume that the content-type set here is the full content type, and try to
602
+ split the header into it&#8217;s two parts?
603
+ </p>
604
+ </li>
605
+ <li>If the headers have been sent, this will throw a Web::Error
606
+
607
+ </li>
608
+ </ul>
609
+ </div>
610
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
611
+ <tr><td class="methodtitle">
612
+ <a name="M000107"></a>
613
+ <a href="CGI.src/M000107.html" target="Code" class="methodtitle"
614
+ onClick="popCode('CGI.src/M000107.html');return false;">
615
+ <b>get_header</b>(name)
616
+ </a>
617
+ </td></tr>
618
+ </table>
619
+ <div class="description">
620
+ <p>
621
+ returns an array of header values set with the given name.
622
+ </p>
623
+ </div>
624
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
625
+ <tr><td class="methodtitle">
626
+ <a name="M000108"></a>
627
+ <a href="CGI.src/M000108.html" target="Code" class="methodtitle"
628
+ onClick="popCode('CGI.src/M000108.html');return false;">
629
+ <b>send_header</b>()
630
+ </a>
631
+ </td></tr>
632
+ </table>
633
+ <div class="description">
634
+ <p>
635
+ Send header to the client. No more header values can be sent after this
636
+ method is called!
637
+ </p>
638
+ </div>
639
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
640
+ <tr><td class="methodtitle">
641
+ <a name="M000109"></a>
642
+ <a href="CGI.src/M000109.html" target="Code" class="methodtitle"
643
+ onClick="popCode('CGI.src/M000109.html');return false;">
644
+ <b>header_sent?</b>()
645
+ </a>
646
+ </td></tr>
647
+ </table>
648
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
649
+ <tr><td class="methodtitle">
650
+ <a name="M000110"></a>
651
+ <a href="CGI.src/M000110.html" target="Code" class="methodtitle"
652
+ onClick="popCode('CGI.src/M000110.html');return false;">
653
+ <b>header</b>()
654
+ </a>
655
+ </td></tr>
656
+ </table>
657
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
658
+ <tr><td class="methodtitle">
659
+ <a name="M000111"></a>
660
+ <a href="CGI.src/M000111.html" target="Code" class="methodtitle"
661
+ onClick="popCode('CGI.src/M000111.html');return false;">
662
+ <b>assert_header</b>( name, values, message=&quot;&quot; )
663
+ </a>
664
+ </td></tr>
665
+ </table>
666
+ <div class="description">
667
+ <p>
668
+ Raises Test::Unit::AssertionFailedError if the header has not been set to
669
+ the provided value(s)
670
+ </p>
671
+ </div>
672
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
673
+ <tr><td class="methodtitle">
674
+ <a name="M000112"></a>
675
+ <a href="CGI.src/M000112.html" target="Code" class="methodtitle"
676
+ onClick="popCode('CGI.src/M000112.html');return false;">
677
+ <b>status</b>()
678
+ </a>
679
+ </td></tr>
680
+ </table>
681
+ <div class="description">
682
+ <p>
683
+ the default status is 200
684
+ </p>
685
+ </div>
686
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
687
+ <tr><td class="methodtitle">
688
+ <a name="M000113"></a>
689
+ <a href="CGI.src/M000113.html" target="Code" class="methodtitle"
690
+ onClick="popCode('CGI.src/M000113.html');return false;">
691
+ <b>status=</b>(new_status)
692
+ </a>
693
+ </td></tr>
694
+ </table>
695
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
696
+ <tr><td class="methodtitle">
697
+ <a name="M000114"></a>
698
+ <a href="CGI.src/M000114.html" target="Code" class="methodtitle"
699
+ onClick="popCode('CGI.src/M000114.html');return false;">
700
+ <b>location</b>()
701
+ </a>
702
+ </td></tr>
703
+ </table>
704
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
705
+ <tr><td class="methodtitle">
706
+ <a name="M000115"></a>
707
+ <a href="CGI.src/M000115.html" target="Code" class="methodtitle"
708
+ onClick="popCode('CGI.src/M000115.html');return false;">
709
+ <b>location=</b>(location)
710
+ </a>
711
+ </td></tr>
712
+ </table>
713
+ <div class="description">
714
+ <p>
715
+ see set redirect
716
+ </p>
717
+ </div>
718
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
719
+ <tr><td class="methodtitle">
720
+ <a name="M000116"></a>
721
+ <a href="CGI.src/M000116.html" target="Code" class="methodtitle"
722
+ onClick="popCode('CGI.src/M000116.html');return false;">
723
+ <b>set_redirect</b>( new_location )
724
+ </a>
725
+ </td></tr>
726
+ </table>
727
+ <div class="description">
728
+ <p>
729
+ Sets the status and the location appropriately.
730
+ </p>
731
+ </div>
732
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
733
+ <tr><td class="methodtitle">
734
+ <a name="M000117"></a>
735
+ <a href="CGI.src/M000117.html" target="Code" class="methodtitle"
736
+ onClick="popCode('CGI.src/M000117.html');return false;">
737
+ <b>encoding</b>()
738
+ </a>
739
+ </td></tr>
740
+ </table>
741
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
742
+ <tr><td class="methodtitle">
743
+ <a name="M000118"></a>
744
+ <a href="CGI.src/M000118.html" target="Code" class="methodtitle"
745
+ onClick="popCode('CGI.src/M000118.html');return false;">
746
+ <b>encoding=</b>( new_encoding )
747
+ </a>
748
+ </td></tr>
749
+ </table>
750
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
751
+ <tr><td class="methodtitle">
752
+ <a name="M000119"></a>
753
+ <a href="CGI.src/M000119.html" target="Code" class="methodtitle"
754
+ onClick="popCode('CGI.src/M000119.html');return false;">
755
+ <b>split_content_type</b>( target = full_content_type )
756
+ </a>
757
+ </td></tr>
758
+ </table>
759
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
760
+ <tr><td class="methodtitle">
761
+ <a name="M000120"></a>
762
+ <a href="CGI.src/M000120.html" target="Code" class="methodtitle"
763
+ onClick="popCode('CGI.src/M000120.html');return false;">
764
+ <b>full_content_type</b>()
765
+ </a>
766
+ </td></tr>
767
+ </table>
768
+ <div class="description">
769
+ <p>
770
+ The content type header is a combination of the <a
771
+ href="CGI.html#M000122">content_type</a> and the charset. This method
772
+ returns that combination.
773
+ </p>
774
+ </div>
775
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
776
+ <tr><td class="methodtitle">
777
+ <a name="M000121"></a>
778
+ <a href="CGI.src/M000121.html" target="Code" class="methodtitle"
779
+ onClick="popCode('CGI.src/M000121.html');return false;">
780
+ <b>set_full_content_type</b>( new_content, new_charset )
781
+ </a>
782
+ </td></tr>
783
+ </table>
784
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
785
+ <tr><td class="methodtitle">
786
+ <a name="M000122"></a>
787
+ <a href="CGI.src/M000122.html" target="Code" class="methodtitle"
788
+ onClick="popCode('CGI.src/M000122.html');return false;">
789
+ <b>content_type</b>()
790
+ </a>
791
+ </td></tr>
792
+ </table>
793
+ <div class="description">
794
+ <p>
795
+ the default content-type is &quot;text/html&quot;
796
+ </p>
797
+ </div>
798
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
799
+ <tr><td class="methodtitle">
800
+ <a name="M000123"></a>
801
+ <a href="CGI.src/M000123.html" target="Code" class="methodtitle"
802
+ onClick="popCode('CGI.src/M000123.html');return false;">
803
+ <b>content_type=</b>(new_content_type)
804
+ </a>
805
+ </td></tr>
806
+ </table>
807
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
808
+ <tr><td class="methodtitle">
809
+ <a name="M000124"></a>
810
+ <a href="CGI.src/M000124.html" target="Code" class="methodtitle"
811
+ onClick="popCode('CGI.src/M000124.html');return false;">
812
+ <b>charset</b>()
813
+ </a>
814
+ </td></tr>
815
+ </table>
816
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
817
+ <tr><td class="methodtitle">
818
+ <a name="M000125"></a>
819
+ <a href="CGI.src/M000125.html" target="Code" class="methodtitle"
820
+ onClick="popCode('CGI.src/M000125.html');return false;">
821
+ <b>charset=</b>(new_charset)
822
+ </a>
823
+ </td></tr>
824
+ </table>
825
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
826
+ <tr><td class="methodtitle">
827
+ <a name="M000126"></a>
828
+ <a href="CGI.src/M000126.html" target="Code" class="methodtitle"
829
+ onClick="popCode('CGI.src/M000126.html');return false;">
830
+ <b>set_cookie</b>( name, value, options={} )
831
+ </a>
832
+ </td></tr>
833
+ </table>
834
+ <div class="description">
835
+ <p>
836
+ Cookies require a name and a value. You can also use these optional keyword
837
+ arguments:
838
+ </p>
839
+ <table>
840
+ <tr><td valign="top"><b>:path</b> =&gt; &lt;i&gt;string&lt;i&gt;:</td><td>path (need better description)
841
+
842
+ </td></tr>
843
+ <tr><td valign="top"><b>:domain</b> =&gt; <em>string</em>:</td><td>domain (need better description)
844
+
845
+ </td></tr>
846
+ <tr><td valign="top"><b>:expires</b> =&gt; <em>date</em>:</td><td>date this cookie should expire
847
+
848
+ </td></tr>
849
+ <tr><td valign="top"><b>:secure</b> =&gt; <em>true || false </em>:</td><td>whether this cookie should be tagged as secure.
850
+
851
+ </td></tr>
852
+ </table>
853
+ </div>
854
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
855
+ <tr><td class="methodtitle">
856
+ <a name="M000127"></a>
857
+ <a href="CGI.src/M000127.html" target="Code" class="methodtitle"
858
+ onClick="popCode('CGI.src/M000127.html');return false;">
859
+ <b>get_cookie</b>(key)
860
+ </a>
861
+ </td></tr>
862
+ </table>
863
+ <div class="description">
864
+ <p>
865
+ returns an array of cookie values that have been set. path / expires / etc.
866
+ info is currently not returned, should be added in?
867
+ </p>
868
+ </div>
869
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
870
+ <tr><td class="methodtitle">
871
+ <a name="M000128"></a>
872
+ <a href="CGI.src/M000128.html" target="Code" class="methodtitle"
873
+ onClick="popCode('CGI.src/M000128.html');return false;">
874
+ <b>cookies_sent</b>()
875
+ </a>
876
+ </td></tr>
877
+ </table>
878
+ <div class="description">
879
+ <p>
880
+ returns a hash of all the cookie n/v pairs that have been set on the cgi
881
+ </p>
882
+ </div>
883
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
884
+ <tr><td class="methodtitle">
885
+ <a name="M000129"></a>
886
+ <a href="CGI.src/M000129.html" target="Code" class="methodtitle"
887
+ onClick="popCode('CGI.src/M000129.html');return false;">
888
+ <b>assert_cookie</b>( name, values, message=&quot;&quot; )
889
+ </a>
890
+ </td></tr>
891
+ </table>
892
+ <div class="description">
893
+ <p>
894
+ Throws Test::Unit::AssertionFailedException if cookie values are not
895
+ present.
896
+ </p>
897
+ </div>
898
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
899
+ <tr><td class="methodtitle">
900
+ <a name="M000130"></a>
901
+ <a href="CGI.src/M000130.html" target="Code" class="methodtitle"
902
+ onClick="popCode('CGI.src/M000130.html');return false;">
903
+ <b>nph?</b>()
904
+ </a>
905
+ </td></tr>
906
+ </table>
907
+ <div class="description">
908
+ <p>
909
+ Aside from when :nph is set in the options, scripts running in IIS always
910
+ use nph mode. This code will probably be affected as cgi is re-organized to
911
+ support multiple backends.
912
+ </p>
913
+ </div>
914
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
915
+ <tr><td class="methodtitle">
916
+ <a name="M000131"></a>
917
+ <a href="CGI.src/M000131.html" target="Code" class="methodtitle"
918
+ onClick="popCode('CGI.src/M000131.html');return false;">
919
+ <b>env</b>()
920
+ </a>
921
+ </td></tr>
922
+ </table>
923
+ <div class="description">
924
+ <p>
925
+ ENV variables, scoped to the cgi (for in-process servers)
926
+ </p>
927
+ </div>
928
+ <table summary="method" width="100%" cellspacing="0" cellpadding="5" border="0">
929
+ <tr><td class="methodtitle">
930
+ <a name="M000132"></a>
931
+ <a href="CGI.src/M000132.html" target="Code" class="methodtitle"
932
+ onClick="popCode('CGI.src/M000132.html');return false;">
933
+ <b>report_error</b>( err )
934
+ </a>
935
+ </td></tr>
936
+ </table>
937
+
938
+ </body>
939
+ </html>