2005-03-28 23:45:13 -05:00
|
|
|
IN: temporary
|
2004-08-28 22:25:59 -04:00
|
|
|
USE: file-responder
|
2005-05-02 00:18:34 -04:00
|
|
|
USE: http
|
2004-07-16 02:26:21 -04:00
|
|
|
USE: httpd
|
2004-08-10 21:32:10 -04:00
|
|
|
USE: namespaces
|
2005-06-19 17:50:35 -04:00
|
|
|
USE: io
|
2004-07-16 02:26:21 -04:00
|
|
|
USE: test
|
2004-09-02 16:40:34 -04:00
|
|
|
USE: strings
|
|
|
|
USE: lists
|
2004-07-16 02:26:21 -04:00
|
|
|
|
2004-09-03 16:54:58 -04:00
|
|
|
[ "HTTP/1.0 200 OK\nContent-Length: 12\nContent-Type: text/html\n\n" ]
|
2004-09-02 16:40:34 -04:00
|
|
|
[
|
2005-06-19 18:53:58 -04:00
|
|
|
[ "text/html" 12 file-response ] string-out
|
2004-09-02 16:40:34 -04:00
|
|
|
] unit-test
|
2004-07-16 02:26:21 -04:00
|
|
|
|
2005-01-28 23:55:22 -05:00
|
|
|
[ ] [ "404 not found" httpd-error ] unit-test
|
2004-07-16 02:26:21 -04:00
|
|
|
|
2004-08-10 21:32:10 -04:00
|
|
|
[ "arg" ] [
|
|
|
|
[
|
|
|
|
"arg" "default-argument" set
|
|
|
|
"" responder-argument
|
|
|
|
] with-scope
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[ "inspect/global" ] [ "/inspect/global" trim-/ ] unit-test
|
|
|
|
|
|
|
|
[ ] [
|
2005-04-22 20:09:46 -04:00
|
|
|
"unit/test" log-responder
|
2004-08-10 21:32:10 -04:00
|
|
|
] unit-test
|
|
|
|
|
2004-08-10 22:11:48 -04:00
|
|
|
[ "index.html" ]
|
|
|
|
[ "http://www.jedit.org/index.html" url>path ] unit-test
|
|
|
|
|
|
|
|
[ "foo/bar" ]
|
|
|
|
[ "http://www.jedit.org/foo/bar" url>path ] unit-test
|
|
|
|
|
|
|
|
[ "" ]
|
|
|
|
[ "http://www.jedit.org/" url>path ] unit-test
|
|
|
|
|
|
|
|
[ "" ]
|
|
|
|
[ "http://www.jedit.org" url>path ] unit-test
|
|
|
|
|
|
|
|
[ "foobar" ]
|
|
|
|
[ "foobar" secure-path ] unit-test
|
|
|
|
|
|
|
|
[ f ]
|
|
|
|
[ "foobar/../baz" secure-path ] unit-test
|
|
|
|
|
|
|
|
[ ] [ "GET ../index.html" parse-request ] unit-test
|
|
|
|
[ ] [ "POO" parse-request ] unit-test
|
2004-08-19 19:21:40 -04:00
|
|
|
|
2005-11-29 23:49:59 -05:00
|
|
|
[ H{ { "Foo" "Bar" } } ] [ "Foo=Bar" query>hash ] unit-test
|
2004-08-29 23:30:54 -04:00
|
|
|
|
2005-11-29 23:49:59 -05:00
|
|
|
[ H{ { "Foo" "Bar" } { "Baz" "Quux" } } ]
|
|
|
|
[ "Foo=Bar&Baz=Quux" query>hash ] unit-test
|
2004-08-29 23:30:54 -04:00
|
|
|
|
2005-11-29 23:49:59 -05:00
|
|
|
[ H{ { "Baz" " " } } ]
|
|
|
|
[ "Baz=%20" query>hash ] unit-test
|
2004-08-29 23:30:54 -04:00
|
|
|
|
2005-11-29 23:49:59 -05:00
|
|
|
[ H{ { "Foo" f } } ] [ "Foo" query>hash ] unit-test
|