2014-11-03 18:20:05 -05:00
|
|
|
USING: kernel furnace.actions io.crlf validators tools.test math math.parser
|
2014-10-29 10:34:17 -04:00
|
|
|
multiline namespaces http io.streams.string http.server http.server.requests
|
|
|
|
sequences splitting accessors ;
|
2008-06-01 18:22:39 -04:00
|
|
|
IN: furnace.actions.tests
|
2008-03-15 07:22:47 -04:00
|
|
|
|
2008-03-05 22:38:15 -05:00
|
|
|
<action>
|
2008-05-26 01:47:27 -04:00
|
|
|
[ "a" param "b" param [ string>number ] bi@ + ] >>display
|
2008-03-05 22:38:15 -05:00
|
|
|
"action-1" set
|
2008-03-03 05:40:29 -05:00
|
|
|
|
|
|
|
STRING: action-request-test-1
|
|
|
|
GET http://foo/bar?a=12&b=13 HTTP/1.1
|
|
|
|
|
|
|
|
blah
|
|
|
|
;
|
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ 25 } [
|
2008-04-23 01:53:42 -04:00
|
|
|
action-request-test-1 lf>crlf
|
|
|
|
[ read-request ] with-string-reader
|
2008-06-01 18:22:39 -04:00
|
|
|
init-request
|
2008-04-25 04:23:47 -04:00
|
|
|
{ } "action-1" get call-responder
|
2008-03-03 05:40:29 -05:00
|
|
|
] unit-test
|
2008-06-05 01:18:36 -04:00
|
|
|
|
|
|
|
<action>
|
|
|
|
"a" >>rest
|
|
|
|
[ "a" param string>number sq ] >>display
|
|
|
|
"action-2" set
|
|
|
|
|
|
|
|
STRING: action-request-test-2
|
|
|
|
GET http://foo/bar/123 HTTP/1.1
|
|
|
|
|
|
|
|
blah
|
|
|
|
;
|
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ 25 } [
|
2008-06-05 01:18:36 -04:00
|
|
|
action-request-test-2 lf>crlf
|
|
|
|
[ read-request ] with-string-reader
|
|
|
|
init-request
|
|
|
|
{ "5" } "action-2" get call-responder
|
|
|
|
] unit-test
|