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