narf 0.5.1

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