1 USING: furnace furnace.actions furnace.callbacks accessors
\r
2 http http.server http.server.responses tools.test
\r
3 namespaces io fry sequences
\r
4 splitting kernel hashtables continuations ;
\r
5 IN: furnace.callbacks.tests
\r
9 <request> "GET" >>method init-request
\r
11 exit-continuation set
\r
13 <action> [ [ "hello" print 123 ] show-final ] >>display
\r
14 <callback-responder>
\r
24 "text/html" <content>
\r
29 <callback-responder> "r" set
\r
32 <request> init-request
\r
35 exit-continuation set
\r
36 <request> "GET" >>method init-request
\r
37 { } "r" get call-responder
\r
44 dup url>> rot cont-id associate >>query drop
\r
45 dup url>> "/" >>path drop
\r
49 exit-continuation set
\r
51 "r" get call-responder
\r
57 dup url>> rot "location" header query>> >>query drop
\r
58 dup url>> "/" >>path drop
\r
62 exit-continuation set
\r
64 "r" get call-responder
\r