narf 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +163 -0
- data/InstalledFiles +2227 -0
- data/README +124 -0
- data/TODO +88 -0
- data/bin/narftest +17 -0
- data/bug.rb +9 -0
- data/build.rb +314 -0
- data/build.rb~ +314 -0
- data/config.save +12 -0
- data/doc/apache_cgi.txt +17 -0
- data/doc/fastcgi.txt +19 -0
- data/doc/mod_ruby.txt +7 -0
- data/doc/rdoc/classes/Web.html +366 -0
- data/doc/rdoc/classes/Web.src/M000002.html +15 -0
- data/doc/rdoc/classes/Web.src/M000003.html +15 -0
- data/doc/rdoc/classes/Web.src/M000004.html +15 -0
- data/doc/rdoc/classes/Web.src/M000005.html +15 -0
- data/doc/rdoc/classes/Web.src/M000006.html +20 -0
- data/doc/rdoc/classes/Web.src/M000007.html +18 -0
- data/doc/rdoc/classes/Web.src/M000008.html +18 -0
- data/doc/rdoc/classes/Web.src/M000009.html +18 -0
- data/doc/rdoc/classes/Web.src/M000010.html +15 -0
- data/doc/rdoc/classes/Web.src/M000011.html +15 -0
- data/doc/rdoc/classes/Web.src/M000012.html +15 -0
- data/doc/rdoc/classes/Web/CGD.html +173 -0
- data/doc/rdoc/classes/Web/CGD.src/M000037.html +24 -0
- data/doc/rdoc/classes/Web/CGD.src/M000038.html +23 -0
- data/doc/rdoc/classes/Web/CGD.src/M000039.html +15 -0
- data/doc/rdoc/classes/Web/CGD.src/M000040.html +15 -0
- data/doc/rdoc/classes/Web/CGD.src/M000041.html +23 -0
- data/doc/rdoc/classes/Web/CGI.html +946 -0
- data/doc/rdoc/classes/Web/CGI.src/M000051.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000052.html +24 -0
- data/doc/rdoc/classes/Web/CGI.src/M000053.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000054.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000055.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000056.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000057.html +17 -0
- data/doc/rdoc/classes/Web/CGI.src/M000058.html +34 -0
- data/doc/rdoc/classes/Web/CGI.src/M000059.html +22 -0
- data/doc/rdoc/classes/Web/CGI.src/M000060.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000061.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000062.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000063.html +18 -0
- data/doc/rdoc/classes/Web/CGI.src/M000064.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000065.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000066.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000067.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000068.html +13 -0
- data/doc/rdoc/classes/Web/CGI.src/M000069.html +13 -0
- data/doc/rdoc/classes/Web/CGI.src/M000070.html +13 -0
- data/doc/rdoc/classes/Web/CGI.src/M000071.html +13 -0
- data/doc/rdoc/classes/Web/CGI.src/M000072.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000073.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000074.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000075.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000076.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000077.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000078.html +20 -0
- data/doc/rdoc/classes/Web/CGI.src/M000079.html +36 -0
- data/doc/rdoc/classes/Web/CGI.src/M000080.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000081.html +18 -0
- data/doc/rdoc/classes/Web/CGI.src/M000082.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000083.html +17 -0
- data/doc/rdoc/classes/Web/CGI.src/M000084.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000085.html +16 -0
- data/doc/rdoc/classes/Web/CGI.src/M000086.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000087.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000088.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000089.html +16 -0
- data/doc/rdoc/classes/Web/CGI.src/M000090.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000091.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000092.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000093.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000094.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000095.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000096.html +19 -0
- data/doc/rdoc/classes/Web/CGI.src/M000097.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000098.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000099.html +43 -0
- data/doc/rdoc/classes/Web/CGI.src/M000100.html +18 -0
- data/doc/rdoc/classes/Web/CGI.src/M000101.html +20 -0
- data/doc/rdoc/classes/Web/CGI.src/M000102.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000103.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000104.html +15 -0
- data/doc/rdoc/classes/Web/CGI.src/M000105.html +24 -0
- data/doc/rdoc/classes/Web/CGI.src/M000106.html +24 -0
- data/doc/rdoc/classes/Web/CGI.src/M000107.html +22 -0
- data/doc/rdoc/classes/Web/CaseInsensitiveHash.html +104 -0
- data/doc/rdoc/classes/Web/CaseInsensitiveHash.src/M000118.html +15 -0
- data/doc/rdoc/classes/Web/CaseInsensitiveHash.src/M000119.html +15 -0
- data/doc/rdoc/classes/Web/CaseInsensitiveHash.src/M000120.html +15 -0
- data/doc/rdoc/classes/Web/Mime.html +122 -0
- data/doc/rdoc/classes/Web/Mime.src/M000118.html +15 -0
- data/doc/rdoc/classes/Web/Mime.src/M000119.html +15 -0
- data/doc/rdoc/classes/Web/Mime.src/M000120.html +23 -0
- data/doc/rdoc/classes/Web/Mime.src/M000121.html +15 -0
- data/doc/rdoc/classes/Web/Mime.src/M000122.html +15 -0
- data/doc/rdoc/classes/Web/Mime.src/M000123.html +23 -0
- data/doc/rdoc/classes/Web/Mime.src/M000124.html +15 -0
- data/doc/rdoc/classes/Web/Narflates.html +132 -0
- data/doc/rdoc/classes/Web/Parser.html +219 -0
- data/doc/rdoc/classes/Web/Parser.src/M000013.html +21 -0
- data/doc/rdoc/classes/Web/Parser.src/M000014.html +19 -0
- data/doc/rdoc/classes/Web/Parser.src/M000015.html +21 -0
- data/doc/rdoc/classes/Web/Parser.src/M000016.html +15 -0
- data/doc/rdoc/classes/Web/Parser.src/M000017.html +30 -0
- data/doc/rdoc/classes/Web/Parser.src/M000018.html +15 -0
- data/doc/rdoc/classes/Web/Parser.src/M000019.html +19 -0
- data/doc/rdoc/classes/Web/Parser.src/M000020.html +27 -0
- data/doc/rdoc/classes/Web/Parser.src/M000021.html +15 -0
- data/doc/rdoc/classes/Web/Parser.src/M000022.html +16 -0
- data/doc/rdoc/classes/Web/Parser.src/M000023.html +18 -0
- data/doc/rdoc/classes/Web/Session.html +178 -0
- data/doc/rdoc/classes/Web/Session.src/M000042.html +20 -0
- data/doc/rdoc/classes/Web/Session.src/M000043.html +19 -0
- data/doc/rdoc/classes/Web/Session.src/M000044.html +21 -0
- data/doc/rdoc/classes/Web/Session.src/M000045.html +21 -0
- data/doc/rdoc/classes/Web/Session.src/M000046.html +15 -0
- data/doc/rdoc/classes/Web/Session.src/M000047.html +17 -0
- data/doc/rdoc/classes/Web/Session.src/M000048.html +15 -0
- data/doc/rdoc/classes/Web/Session.src/M000049.html +15 -0
- data/doc/rdoc/classes/Web/Session.src/M000050.html +16 -0
- data/doc/rdoc/classes/Web/Testing.html +474 -0
- data/doc/rdoc/classes/Web/Testing.src/M000024.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000025.html +25 -0
- data/doc/rdoc/classes/Web/Testing.src/M000026.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000027.html +28 -0
- data/doc/rdoc/classes/Web/Testing.src/M000028.html +58 -0
- data/doc/rdoc/classes/Web/Testing.src/M000029.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000030.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000031.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000032.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000033.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000034.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000035.html +15 -0
- data/doc/rdoc/classes/Web/Testing.src/M000036.html +18 -0
- data/doc/rdoc/classes/Web/Upload.html +160 -0
- data/doc/rdoc/classes/Web/Upload.src/M000108.html +25 -0
- data/doc/rdoc/classes/Web/Upload.src/M000109.html +18 -0
- data/doc/rdoc/classes/Web/Upload.src/M000110.html +16 -0
- data/doc/rdoc/classes/Web/Upload.src/M000111.html +16 -0
- data/doc/rdoc/classes/Web/Wiki.html +249 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000112.html +25 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000113.html +15 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000114.html +26 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000115.html +21 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000116.html +18 -0
- data/doc/rdoc/classes/Web/Wiki.src/M000117.html +19 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/README.html +226 -0
- data/doc/rdoc/files/doc/apache_cgi_txt.html +82 -0
- data/doc/rdoc/files/doc/fastcgi_txt.html +82 -0
- data/doc/rdoc/files/doc/mod_ruby_txt.html +62 -0
- data/doc/rdoc/files/doc/webrick_txt.html +79 -0
- data/doc/rdoc/files/examples/examples_rdoc.html +73 -0
- data/doc/rdoc/files/lib/web/cgi_rb.html +75 -0
- data/doc/rdoc/files/lib/web/mime_rb.html +67 -0
- data/doc/rdoc/files/lib/web/parser_rb.html +73 -0
- data/doc/rdoc/files/lib/web/session_rb.html +73 -0
- data/doc/rdoc/files/lib/web/template_rb.html +73 -0
- data/doc/rdoc/files/lib/web/testing_rb.html +67 -0
- data/doc/rdoc/files/lib/web/upload_rb.html +73 -0
- data/doc/rdoc/files/lib/web/wiki_rb.html +79 -0
- data/doc/rdoc/files/lib/web_rb.html +116 -0
- data/doc/rdoc/files/lib/web_rb.src/M000001.html +15 -0
- data/doc/rdoc/fr_class_index.html +47 -0
- data/doc/rdoc/fr_file_index.html +52 -0
- data/doc/rdoc/fr_method_index.html +158 -0
- data/doc/rdoc/index.html +22 -0
- data/doc/rdoc/rdoc-style.css +99 -0
- data/doc/webrick.txt +23 -0
- data/examples/admin.rb +8 -0
- data/examples/admin.rb~ +5 -0
- data/examples/cookbook.rdoc +247 -0
- data/examples/cookbook.rdoc~ +238 -0
- data/examples/examples.rdoc +19 -0
- data/examples/examples.rdoc~ +17 -0
- data/examples/hello.world.rb +5 -0
- data/examples/hello.world.rb~ +3 -0
- data/examples/session.rb +34 -0
- data/examples/session.rb~ +31 -0
- data/examples/test/test.hello.world.rb +9 -0
- data/examples/test/test.hello.world.rb~ +9 -0
- data/examples/test/test.session.rb +37 -0
- data/examples/test/test.session.rb~ +37 -0
- data/examples/webunit/COPYING +340 -0
- data/examples/webunit/Makefile +14 -0
- data/examples/webunit/TIPS-ja.html +126 -0
- data/examples/webunit/TIPS-ja.rd +154 -0
- data/examples/webunit/TODO-ja.html +35 -0
- data/examples/webunit/TODO-ja.rd +28 -0
- data/examples/webunit/changes.rd +185 -0
- data/examples/webunit/conv/digit-0.cgi +40 -0
- data/examples/webunit/conv/digit-0.rb +21 -0
- data/examples/webunit/conv/digit-1.cgi +44 -0
- data/examples/webunit/conv/digit-1.rb +17 -0
- data/examples/webunit/conv/digit.cgi +59 -0
- data/examples/webunit/conv/digit.rb +23 -0
- data/examples/webunit/conv/test_digit-0.rb +16 -0
- data/examples/webunit/conv/test_digit-1.rb +19 -0
- data/examples/webunit/conv/test_digit.rb +26 -0
- data/examples/webunit/conv/test_digit_view-0.rb +76 -0
- data/examples/webunit/conv/test_digit_view-1.rb +102 -0
- data/examples/webunit/conv/test_digit_view.rb +134 -0
- data/examples/webunit/example.rd +37 -0
- data/examples/webunit/index-en.html +263 -0
- data/examples/webunit/index-en.rd +60 -0
- data/examples/webunit/index-ja.html +263 -0
- data/examples/webunit/index-ja.rd +60 -0
- data/examples/wiki.rb +7 -0
- data/examples/wiki.rb~ +5 -0
- data/install.rb +1022 -0
- data/lib/web.rb +290 -0
- data/lib/web.rb~ +290 -0
- data/lib/web/#assertinclude.rb# +110 -0
- data/lib/web/action.rb +82 -0
- data/lib/web/assertinclude.rb +110 -0
- data/lib/web/assertinclude.rb~ +110 -0
- data/lib/web/buffer.rb +20 -0
- data/lib/web/cgi.rb +641 -0
- data/lib/web/cgi.rb~ +640 -0
- data/lib/web/formreader.rb +317 -0
- data/lib/web/forms.rb +104 -0
- data/lib/web/htmlparser/html-parser.rb +429 -0
- data/lib/web/htmlparser/html-parser.rb~ +429 -0
- data/lib/web/htmlparser/sgml-parser.rb +332 -0
- data/lib/web/htmlparser/sgml-parser.rb~ +332 -0
- data/lib/web/htmltools/element.rb +296 -0
- data/lib/web/htmltools/element.rb~ +296 -0
- data/lib/web/htmltools/stparser.rb +276 -0
- data/lib/web/htmltools/stparser.rb~ +276 -0
- data/lib/web/htmltools/tags.rb +286 -0
- data/lib/web/htmltools/tags.rb~ +286 -0
- data/lib/web/htmltools/tree.rb +139 -0
- data/lib/web/htmltools/tree.rb~ +139 -0
- data/lib/web/htmltools/xmltree.rb +160 -0
- data/lib/web/htmltools/xmltree.rb~ +160 -0
- data/lib/web/htmltools/xpath.rb +71 -0
- data/lib/web/htmltools/xpath.rb~ +71 -0
- data/lib/web/mime.rb +82 -0
- data/lib/web/parser.rb +266 -0
- data/lib/web/parser.rb~ +266 -0
- data/lib/web/request.rb~ +238 -0
- data/lib/web/resources/mime.types +483 -0
- data/lib/web/runner.rb +26 -0
- data/lib/web/runner.rb~ +26 -0
- data/lib/web/sapi/fastcgi.rb +26 -0
- data/lib/web/sapi/fastcgi.rb~ +25 -0
- data/lib/web/sapi/mod_ruby.rb +46 -0
- data/lib/web/sapi/mod_ruby.rb~ +46 -0
- data/lib/web/sapi/webrick.rb +91 -0
- data/lib/web/sapi/webrick.rb~ +89 -0
- data/lib/web/session.rb +75 -0
- data/lib/web/session.rb~ +75 -0
- data/lib/web/simpledispatcher.rb +155 -0
- data/lib/web/strscanparser.rb +24 -0
- data/lib/web/tagparser.rb +96 -0
- data/lib/web/tagparser.rb~ +96 -0
- data/lib/web/template.rb +613 -0
- data/lib/web/template.rb~ +613 -0
- data/lib/web/testing.rb +546 -0
- data/lib/web/testing.rb~ +546 -0
- data/lib/web/traceoutput.rb +32 -0
- data/lib/web/unit.rb +27 -0
- data/lib/web/unit/assert.rb +154 -0
- data/lib/web/unit/converter.rb +148 -0
- data/lib/web/unit/cookie.rb +120 -0
- data/lib/web/unit/domwalker.rb +187 -0
- data/lib/web/unit/exception.rb +15 -0
- data/lib/web/unit/form.rb +118 -0
- data/lib/web/unit/formatter.rb +314 -0
- data/lib/web/unit/frame.rb +39 -0
- data/lib/web/unit/html-parser.rb +432 -0
- data/lib/web/unit/htmlelem.rb +124 -0
- data/lib/web/unit/htmlrepair.rb +116 -0
- data/lib/web/unit/htmlsplit.rb +840 -0
- data/lib/web/unit/image.rb +27 -0
- data/lib/web/unit/jscript.rb +32 -0
- data/lib/web/unit/link.rb +35 -0
- data/lib/web/unit/params.rb +323 -0
- data/lib/web/unit/parser.rb +226 -0
- data/lib/web/unit/resources/assert.html +101 -0
- data/lib/web/unit/resources/auth/index.html +5 -0
- data/lib/web/unit/resources/badtags.html +7 -0
- data/lib/web/unit/resources/cookie.cgi +33 -0
- data/lib/web/unit/resources/document.xml +13 -0
- data/lib/web/unit/resources/form.html +150 -0
- data/lib/web/unit/resources/frame-0.html +10 -0
- data/lib/web/unit/resources/frame-1.html +10 -0
- data/lib/web/unit/resources/frame.html +10 -0
- data/lib/web/unit/resources/image.html +17 -0
- data/lib/web/unit/resources/images/x.gif +0 -0
- data/lib/web/unit/resources/images/y.gif +0 -0
- data/lib/web/unit/resources/jscript-0.html +10 -0
- data/lib/web/unit/resources/jscript-1.html +10 -0
- data/lib/web/unit/resources/jscript.html +19 -0
- data/lib/web/unit/resources/link.html +19 -0
- data/lib/web/unit/resources/multipart.cgi +28 -0
- data/lib/web/unit/resources/multipart.html +74 -0
- data/lib/web/unit/resources/params.html +65 -0
- data/lib/web/unit/resources/redirect.cgi +13 -0
- data/lib/web/unit/resources/response.html +67 -0
- data/lib/web/unit/resources/simple.cgi +14 -0
- data/lib/web/unit/resources/stock.cgi +35 -0
- data/lib/web/unit/resources/table.html +83 -0
- data/lib/web/unit/response.rb +469 -0
- data/lib/web/unit/response.rb~ +461 -0
- data/lib/web/unit/runtest.rb +44 -0
- data/lib/web/unit/sgml-parser.rb +336 -0
- data/lib/web/unit/table.rb +150 -0
- data/lib/web/unit/testcase.rb +49 -0
- data/lib/web/unit/ui/cui/testrunner.rb +52 -0
- data/lib/web/unit/ui/cui/testrunner.rb~ +50 -0
- data/lib/web/unit/utils.rb +70 -0
- data/lib/web/unit/webunit.rb +28 -0
- data/lib/web/upload.rb +55 -0
- data/lib/web/upload.rb~ +262 -0
- data/lib/web/wiki.rb +506 -0
- data/lib/web/wiki.rb~ +506 -0
- data/lib/web/wiki/linker.rb +72 -0
- data/lib/web/wiki/linker.rb~ +72 -0
- data/lib/web/wiki/mime.rb~ +68 -0
- data/lib/web/wiki/page.rb +192 -0
- data/lib/web/wiki/page.rb~ +192 -0
- data/lib/web/wiki/resources/#edit.html# +65 -0
- data/lib/web/wiki/resources/admin.html +13 -0
- data/lib/web/wiki/resources/admin.html~ +13 -0
- data/lib/web/wiki/resources/asset_history.html +3 -0
- data/lib/web/wiki/resources/basic.html +1 -0
- data/lib/web/wiki/resources/default-content_editor.html +1 -0
- data/lib/web/wiki/resources/default-content_editor.html~ +1 -0
- data/lib/web/wiki/resources/edit.html +1 -1
- data/lib/web/wiki/resources/edit.html~ +1 -1
- data/lib/web/wiki/resources/ekit-content_editor.html +1 -0
- data/lib/web/wiki/resources/home.html +10 -0
- data/lib/web/wiki/resources/home.html~ +10 -0
- data/lib/web/wiki/resources/htmlarea/ChangeLog +1185 -0
- data/lib/web/wiki/resources/htmlarea/dialog.js +72 -0
- data/lib/web/wiki/resources/htmlarea/examples/2-areas.cgi +16 -0
- data/lib/web/wiki/resources/htmlarea/examples/2-areas.html +158 -0
- data/lib/web/wiki/resources/htmlarea/examples/context-menu.html +95 -0
- data/lib/web/wiki/resources/htmlarea/examples/core.html +184 -0
- data/lib/web/wiki/resources/htmlarea/examples/css.html +88 -0
- data/lib/web/wiki/resources/htmlarea/examples/custom.css +29 -0
- data/lib/web/wiki/resources/htmlarea/examples/full-page.html +75 -0
- data/lib/web/wiki/resources/htmlarea/examples/fully-loaded.html +248 -0
- data/lib/web/wiki/resources/htmlarea/examples/index.html +40 -0
- data/lib/web/wiki/resources/htmlarea/examples/spell-checker.html +132 -0
- data/lib/web/wiki/resources/htmlarea/examples/table-operations.html +116 -0
- data/lib/web/wiki/resources/htmlarea/examples/test.cgi +21 -0
- data/lib/web/wiki/resources/htmlarea/htmlarea.css +180 -0
- data/lib/web/wiki/resources/htmlarea/htmlarea.js +2175 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_about.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_align_center.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_align_justify.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_align_left.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_align_right.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_blank.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_charmap.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_color_bg.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_color_fg.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_copy.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_custom.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_cut.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_delete.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_bold.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_italic.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_strike.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_sub.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_sup.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_format_underline.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_help.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_hr.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_html.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_image.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_indent_less.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_indent_more.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_left_to_right.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_link.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_list_bullet.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_list_num.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_paste.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_redo.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_right_to_left.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_save.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_show_border.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_splitcel.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/ed_undo.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/fullscreen_maximize.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/fullscreen_minimize.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/images/insert_table.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/index.html +199 -0
- data/lib/web/wiki/resources/htmlarea/lang/b5.js +36 -0
- data/lib/web/wiki/resources/htmlarea/lang/cz.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/da.js +38 -0
- data/lib/web/wiki/resources/htmlarea/lang/de.js +54 -0
- data/lib/web/wiki/resources/htmlarea/lang/ee.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/el.js +75 -0
- data/lib/web/wiki/resources/htmlarea/lang/en.js +88 -0
- data/lib/web/wiki/resources/htmlarea/lang/es.js +51 -0
- data/lib/web/wiki/resources/htmlarea/lang/fi.js +46 -0
- data/lib/web/wiki/resources/htmlarea/lang/fr.js +61 -0
- data/lib/web/wiki/resources/htmlarea/lang/gb.js +36 -0
- data/lib/web/wiki/resources/htmlarea/lang/he.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/hu.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/it.js +54 -0
- data/lib/web/wiki/resources/htmlarea/lang/ja-euc.js +37 -0
- data/lib/web/wiki/resources/htmlarea/lang/ja-jis.js +37 -0
- data/lib/web/wiki/resources/htmlarea/lang/ja-sjis.js +37 -0
- data/lib/web/wiki/resources/htmlarea/lang/ja-utf8.js +37 -0
- data/lib/web/wiki/resources/htmlarea/lang/lt.js +55 -0
- data/lib/web/wiki/resources/htmlarea/lang/lv.js +55 -0
- data/lib/web/wiki/resources/htmlarea/lang/nb.js +36 -0
- data/lib/web/wiki/resources/htmlarea/lang/nl.js +90 -0
- data/lib/web/wiki/resources/htmlarea/lang/no.js +79 -0
- data/lib/web/wiki/resources/htmlarea/lang/pl.js +36 -0
- data/lib/web/wiki/resources/htmlarea/lang/pt_br.js +37 -0
- data/lib/web/wiki/resources/htmlarea/lang/ro.js +80 -0
- data/lib/web/wiki/resources/htmlarea/lang/ru.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/se.js +38 -0
- data/lib/web/wiki/resources/htmlarea/lang/si.js +63 -0
- data/lib/web/wiki/resources/htmlarea/lang/vn.js +51 -0
- data/lib/web/wiki/resources/htmlarea/license.txt +30 -0
- data/lib/web/wiki/resources/htmlarea/plugins/CSS/css.js +116 -0
- data/lib/web/wiki/resources/htmlarea/plugins/CSS/lang/en.js +2 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/context-menu.js +416 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/de.js +59 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/el.js +57 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/en.js +66 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/lang/nl.js +66 -0
- data/lib/web/wiki/resources/htmlarea/plugins/ContextMenu/menu.css +64 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/full-page.js +143 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/img/docprop.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/lang/en.js +25 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/lang/ro.js +25 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/popups/docprop.html +131 -0
- data/lib/web/wiki/resources/htmlarea/plugins/FullPage/test.html +89 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/img/spell-check.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/cz.js +37 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/da.js +37 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/de.js +28 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/en.js +38 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/hu.js +37 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/it.js +28 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/lang/ro.js +37 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/readme-tech.html +114 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi +210 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-style.css +10 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-ui.html +122 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-check-ui.js +397 -0
- data/lib/web/wiki/resources/htmlarea/plugins/SpellChecker/spell-checker.js +79 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-delete.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-insert-after.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-insert-before.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-merge.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-prop.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/cell-split.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-delete.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-insert-after.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-insert-before.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/col-split.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-delete.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-insert-above.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-insert-under.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-prop.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/row-split.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/img/table-prop.gif +0 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/cz.js +90 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/da.js +90 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/de.js +81 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/el.js +81 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/en.js +90 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/fi.js +66 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/hu.js +63 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/it.js +81 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/nl.js +90 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/no.js +91 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/lang/ro.js +90 -0
- data/lib/web/wiki/resources/htmlarea/plugins/TableOperations/table-operations.js +1160 -0
- data/lib/web/wiki/resources/htmlarea/popupdiv.js +369 -0
- data/lib/web/wiki/resources/htmlarea/popups/about.html +378 -0
- data/lib/web/wiki/resources/htmlarea/popups/blank.html +2 -0
- data/lib/web/wiki/resources/htmlarea/popups/custom2.html +35 -0
- data/lib/web/wiki/resources/htmlarea/popups/editor_help.html +16 -0
- data/lib/web/wiki/resources/htmlarea/popups/fullscreen.html +133 -0
- data/lib/web/wiki/resources/htmlarea/popups/insert_image.html +191 -0
- data/lib/web/wiki/resources/htmlarea/popups/insert_table.html +174 -0
- data/lib/web/wiki/resources/htmlarea/popups/link.html +142 -0
- data/lib/web/wiki/resources/htmlarea/popups/old-fullscreen.html +131 -0
- data/lib/web/wiki/resources/htmlarea/popups/old_insert_image.html +206 -0
- data/lib/web/wiki/resources/htmlarea/popups/popup.js +109 -0
- data/lib/web/wiki/resources/htmlarea/popups/select_color.html +347 -0
- data/lib/web/wiki/resources/htmlarea/popupwin.js +139 -0
- data/lib/web/wiki/resources/htmlarea/reference.html +523 -0
- data/lib/web/wiki/resources/htmlarea/release-notes.html +165 -0
- data/lib/web/wiki/resources/ie-content_editor.html +1 -0
- data/lib/web/wiki/resources/ie-content_editor.js +196 -0
- data/lib/web/wiki/resources/illustration.html +1 -0
- data/lib/web/wiki/resources/illustration.html~ +1 -0
- data/lib/web/wiki/resources/images.html +1 -0
- data/lib/web/wiki/resources/index.html +4 -0
- data/lib/web/wiki/resources/index.html~ +4 -0
- data/lib/web/wiki/resources/more_news.html +5 -0
- data/lib/web/wiki/resources/more_news.html~ +5 -0
- data/lib/web/wiki/resources/more_news_rss_0.91.html +23 -0
- data/lib/web/wiki/resources/narf-logo.gif +0 -0
- data/lib/web/wiki/resources/page_history.html +19 -0
- data/lib/web/wiki/resources/page_history.html~ +19 -0
- data/lib/web/wiki/resources/template.html +13 -0
- data/lib/web/wiki/resources/template.html~ +13 -0
- data/lib/web/wiki/resources/test_upload.gif +0 -0
- data/lib/web/wiki/resources/text-styles.css +1 -0
- data/lib/web/writableio.rb +33 -0
- data/narf-0.5.1.gem +0 -0
- data/narf.gemspec +40 -0
- data/narf.gemspec~ +52 -0
- data/pre-setup.rb +5 -0
- data/sapi/apache_cgi/INSTALL.txt~ +9 -0
- data/sapi/apache_cgi/README~ +0 -0
- data/sapi/apache_cgi/src/narf.c +13 -0
- data/sapi/fastcgi/INSTALL.txt~ +17 -0
- data/sapi/mod_ruby/INSTALL.txt~ +5 -0
- data/sapi/webrick/INSTALL.txt~ +21 -0
- data/sapi/webrick/run_webrick.rb~ +16 -0
- data/scripts/dump.rb +14 -0
- data/scripts/makedist.rb +49 -0
- data/scripts/upload.html +5 -0
- data/scripts/uri.rb +41 -0
- data/scripts/uri/common.rb +432 -0
- data/scripts/uri/ftp.rb +149 -0
- data/scripts/uri/generic.rb +1106 -0
- data/scripts/uri/http.rb +76 -0
- data/scripts/uri/https.rb +26 -0
- data/scripts/uri/ldap.rb +238 -0
- data/scripts/uri/mailto.rb +260 -0
- data/scripts/urireg.rb +174 -0
- data/test/bufferedtestrunner.rb +112 -0
- data/test/mod_ruby_stub.rb +39 -0
- data/test/mod_ruby_stub.rb~ +38 -0
- data/test/stringio.rb +2 -0
- data/test/test.action.rb +142 -0
- data/test/test.action.rb~ +142 -0
- data/test/test.app.rb +0 -0
- data/test/test.assertinclude.rb +109 -0
- data/test/test.assertinclude.rb~ +109 -0
- data/test/test.formreader-2.0.rb +352 -0
- data/test/test.formreader.rb +465 -0
- data/test/test.mime-type.rb +23 -0
- data/test/test.narf.cgi.rb +101 -0
- data/test/test.narf.cgi.rb~ +105 -0
- data/test/test.request.rb +328 -0
- data/test/test.request.rb~ +318 -0
- data/test/test.response.rb +565 -0
- data/test/test.response.rb~ +556 -0
- data/test/test.session.rb +50 -0
- data/test/test.simpledispatcher.rb +188 -0
- data/test/test.tagparser.rb +65 -0
- data/test/test.template.rb +831 -0
- data/test/test.template.rb~ +832 -0
- data/test/test.testing2.rb +341 -0
- data/test/test.web.test.rb +463 -0
- data/test/test.web.test.rb~ +461 -0
- data/test/testfiles/basictemplate.tpl +1 -0
- data/test/testfiles/explorer5.multipart.data +9 -0
- data/test/testfiles/form.html +7 -0
- data/test/testfiles/mozilla.multipart.data +9 -0
- data/test/testfiles/netscape4.multipart.data +9 -0
- data/test/testfiles/pic hydra.png +1 -0
- data/test/testfiles/post.data +1 -0
- data/test/testfiles/print.text +1 -0
- data/test/testfiles/text +1 -0
- data/test/webunit/dont_get_it.test_webunit.rb +27 -0
- data/test/webunit/ref +38 -0
- data/test/webunit/resources/uploadfile1.txt +1 -0
- data/test/webunit/resources/uploadfile2.txt +1 -0
- data/test/webunit/test_assert.rb +169 -0
- data/test/webunit/test_cookie.rb +128 -0
- data/test/webunit/test_cookie.rb~ +128 -0
- data/test/webunit/test_domwalker.rb +83 -0
- data/test/webunit/test_form.rb +43 -0
- data/test/webunit/test_form.rb~ +43 -0
- data/test/webunit/test_frame.rb +43 -0
- data/test/webunit/test_htmlelem.rb +75 -0
- data/test/webunit/test_image.rb +46 -0
- data/test/webunit/test_jscript.rb +58 -0
- data/test/webunit/test_link.rb +87 -0
- data/test/webunit/test_multipart.rb +53 -0
- data/test/webunit/test_multipart.rb~ +53 -0
- data/test/webunit/test_params.rb +212 -0
- data/test/webunit/test_params.rb~ +211 -0
- data/test/webunit/test_parser.rb +31 -0
- data/test/webunit/test_response.rb +145 -0
- data/test/webunit/test_response.rb~ +145 -0
- data/test/webunit/test_site/assert.html +101 -0
- data/test/webunit/test_site/assert.html~ +1 -0
- data/test/webunit/test_site/auth/index.html +5 -0
- data/test/webunit/test_site/auth/index.html~ +1 -0
- data/test/webunit/test_site/badtags.html +7 -0
- data/test/webunit/test_site/badtags.html~ +1 -0
- data/test/webunit/test_site/cookie.cgi +37 -0
- data/test/webunit/test_site/cookie.cgi~ +35 -0
- data/test/webunit/test_site/document.xml +13 -0
- data/test/webunit/test_site/document.xml~ +1 -0
- data/test/webunit/test_site/form.html +150 -0
- data/test/webunit/test_site/form.html~ +1 -0
- data/test/webunit/test_site/frame-0.html +10 -0
- data/test/webunit/test_site/frame-0.html~ +1 -0
- data/test/webunit/test_site/frame-1.html +10 -0
- data/test/webunit/test_site/frame-1.html~ +1 -0
- data/test/webunit/test_site/frame.html +10 -0
- data/test/webunit/test_site/frame.html~ +1 -0
- data/test/webunit/test_site/image.html +17 -0
- data/test/webunit/test_site/image.html~ +1 -0
- data/test/webunit/test_site/images/x.gif +0 -0
- data/test/webunit/test_site/images/y.gif +0 -0
- data/test/webunit/test_site/include.cgi~ +10 -0
- data/test/webunit/test_site/jscript-0.html +10 -0
- data/test/webunit/test_site/jscript-0.html~ +1 -0
- data/test/webunit/test_site/jscript-1.html +10 -0
- data/test/webunit/test_site/jscript-1.html~ +1 -0
- data/test/webunit/test_site/jscript.html +19 -0
- data/test/webunit/test_site/jscript.html~ +1 -0
- data/test/webunit/test_site/link.html +19 -0
- data/test/webunit/test_site/link.html~ +1 -0
- data/test/webunit/test_site/multipart.cgi +27 -0
- data/test/webunit/test_site/multipart.cgi~ +25 -0
- data/test/webunit/test_site/multipart.html +74 -0
- data/test/webunit/test_site/multipart.html~ +1 -0
- data/test/webunit/test_site/params.html +65 -0
- data/test/webunit/test_site/params.html~ +1 -0
- data/test/webunit/test_site/redirect.cgi +14 -0
- data/test/webunit/test_site/redirect.cgi~ +14 -0
- data/test/webunit/test_site/response.html +67 -0
- data/test/webunit/test_site/response.html~ +1 -0
- data/test/webunit/test_site/simple.cgi +17 -0
- data/test/webunit/test_site/simple.cgi~ +17 -0
- data/test/webunit/test_site/stock.cgi +36 -0
- data/test/webunit/test_site/stock.cgi~ +34 -0
- data/test/webunit/test_site/table.html +83 -0
- data/test/webunit/test_site/table.html~ +1 -0
- data/test/webunit/test_site/test.cgi~ +25 -0
- data/test/webunit/test_table.rb +70 -0
- data/test/webunit/test_utils.rb +107 -0
- data/test/wiki/test.history.rb +277 -0
- data/test/wiki/test.history.rb~ +254 -0
- data/test/wiki/test.illustration_page.rb +287 -0
- data/test/wiki/test.illustration_page.rb~ +287 -0
- data/test/wiki/test.linker.rb +197 -0
- data/test/wiki/test.tarpit.rb +40 -0
- data/test/wiki/test.wiki.rb +295 -0
- data/test/wiki/test.wiki.rb~ +295 -0
- data/test/wikitestroot/big_image.jpg +0 -0
- data/test/wikitestroot/mime.types +483 -0
- data/test/wikitestroot/test_upload.gif +0 -0
- data/vandals.test.txt +3 -0
- 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 << "#{ name }: #{ v }\r\n"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
output << <span class="str">"\r\n"</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"><<</a>
|
71
|
+
<a href="#M000062">[]</a>
|
72
|
+
<a href="#M000063">[]=</a>
|
73
|
+
<a href="#M000079">add_header</a>
|
74
|
+
<a href="#M000076">assert_content</a>
|
75
|
+
<a href="#M000102">assert_cookie</a>
|
76
|
+
<a href="#M000077">assert_form_includes</a>
|
77
|
+
<a href="#M000084">assert_header</a>
|
78
|
+
<a href="#M000056">cgd</a>
|
79
|
+
<a href="#M000097">charset</a>
|
80
|
+
<a href="#M000098">charset=</a>
|
81
|
+
<a href="#M000072">clear</a>
|
82
|
+
<a href="#M000078">close</a>
|
83
|
+
<a href="#M000095">content_type</a>
|
84
|
+
<a href="#M000096">content_type=</a>
|
85
|
+
<a href="#M000067">cookies</a>
|
86
|
+
<a href="#M000101">cookies_sent</a>
|
87
|
+
<a href="#M000057">create</a>
|
88
|
+
<a href="#M000053">document_root</a>
|
89
|
+
<a href="#M000090">encoding</a>
|
90
|
+
<a href="#M000091">encoding=</a>
|
91
|
+
<a href="#M000104">env</a>
|
92
|
+
<a href="#M000074">flush</a>
|
93
|
+
<a href="#M000093">full_content_type</a>
|
94
|
+
<a href="#M000052">get_cgi</a>
|
95
|
+
<a href="#M000075">get_content</a>
|
96
|
+
<a href="#M000100">get_cookie</a>
|
97
|
+
<a href="#M000080">get_header</a>
|
98
|
+
<a href="#M000083">header</a>
|
99
|
+
<a href="#M000082">header_sent?</a>
|
100
|
+
<a href="#M000066">key?</a>
|
101
|
+
<a href="#M000065">keys</a>
|
102
|
+
<a href="#M000087">location</a>
|
103
|
+
<a href="#M000088">location=</a>
|
104
|
+
<a href="#M000060">multiple_params</a>
|
105
|
+
<a href="#M000061">multiple_params=</a>
|
106
|
+
<a href="#M000058">new</a>
|
107
|
+
<a href="#M000103">nph?</a>
|
108
|
+
<a href="#M000055">path_info</a>
|
109
|
+
<a href="#M000071">print</a>
|
110
|
+
<a href="#M000107">process</a>
|
111
|
+
<a href="#M000069">puts</a>
|
112
|
+
<a href="#M000105">report_error</a>
|
113
|
+
<a href="#M000054">script_name</a>
|
114
|
+
<a href="#M000081">send_header</a>
|
115
|
+
<a href="#M000106">server_sniff</a>
|
116
|
+
<a href="#M000051">set_cgi</a>
|
117
|
+
<a href="#M000099">set_cookie</a>
|
118
|
+
<a href="#M000094">set_full_content_type</a>
|
119
|
+
<a href="#M000089">set_redirect</a>
|
120
|
+
<a href="#M000064">single_param</a>
|
121
|
+
<a href="#M000092">split_content_type</a>
|
122
|
+
<a href="#M000085">status</a>
|
123
|
+
<a href="#M000086">status=</a>
|
124
|
+
<a href="#M000059">trace_output</a>
|
125
|
+
<a href="#M000073">unbuffered?</a>
|
126
|
+
<a href="#M000070">write</a>
|
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"> [R] </td>
|
137
|
+
<td></td>
|
138
|
+
</tr>
|
139
|
+
<tr valign="top">
|
140
|
+
<td class="attr-name">session</td>
|
141
|
+
<td align="center" class="attr-rw"> [R] </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’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={}, &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( "," )
|
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><<</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="")
|
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’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’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’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="" )
|
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 "text/html"
|
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> => <i>string<i>:</td><td>path (need better description)
|
848
|
+
|
849
|
+
</td></tr>
|
850
|
+
<tr><td valign="top"><b>:domain</b> => <em>string</em>:</td><td>domain (need better description)
|
851
|
+
|
852
|
+
</td></tr>
|
853
|
+
<tr><td valign="top"><b>:expires</b> => <em>date</em>:</td><td>date this cookie should expire
|
854
|
+
|
855
|
+
</td></tr>
|
856
|
+
<tr><td valign="top"><b>:secure</b> => <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="" )
|
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>
|