USING: furnace furnace.actions furnace.callbacks accessors http http.server http.server.responses tools.test namespaces io fry sequences splitting kernel hashtables continuations ; IN: furnace.callbacks.tests [ 123 ] [ [ "GET" >>method init-request [ exit-continuation set { } [ [ "hello" print 123 ] show-final ] >>display call-responder ] callcc1 ] with-scope ] unit-test [ [ [ "hello" print "text/html" ] show-page "byebye" print [ 123 ] show-final ] >>display "r" set [ 123 ] [ init-request [ exit-continuation set "GET" >>method init-request { } "r" get call-responder ] callcc1 body>> first "GET" >>method dup url>> rot cont-id associate >>query drop dup url>> "/" >>path drop init-request [ exit-continuation set { } "r" get call-responder ] callcc1 ! get-post-get "GET" >>method dup url>> rot "location" header query>> >>query drop dup url>> "/" >>path drop init-request [ exit-continuation set { } "r" get call-responder ] callcc1 ] unit-test ] with-scope