USING: accessors furnace.actions http.server
http.server.dispatchers http.server.responses http.server.static
-kernel namespaces ;
+io.servers kernel namespaces ;
IN: webapps.benchmark
: run-benchmark-webapp ( -- )
<benchmark-dispatcher>
main-responder set-global
- 8080 httpd drop ;
+ 8080 httpd wait-for-server ;
! Use this with apachebench:
!
! See http://factorcode.org/license.txt for BSD license.
USING: math kernel accessors http.server http.server.dispatchers
furnace furnace.actions furnace.sessions furnace.redirection
-html.components html.forms fry urls ;
+html.components html.forms io.servers urls ;
IN: webapps.counter
SYMBOL: count
<counter-app>
counter-db <alloy>
main-responder set-global
- 8080 httpd drop ;
+ 8080 httpd wait-for-server ;
MAIN: run-counter
USING: accessors assocs furnace.actions furnace.redirection
help.html help.topics html.components html.forms http.server
http.server.dispatchers http.server.static io.directories
-io.files.temp kernel locals namespaces sequences
+io.files.temp io.servers kernel locals namespaces sequences
unicode urls ;
IN: webapps.help
: run-help-webapp ( -- )
"docs" cache-file <help-webapp>
main-responder set-global
- 8080 httpd drop ;
+ 8080 httpd wait-for-server ;
MAIN: run-help-webapp
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors furnace.actions http.server
-http.server.dispatchers html.forms io.sockets
+http.server.dispatchers html.forms io.servers io.sockets
namespaces prettyprint kernel ;
IN: webapps.ip
: run-ip-app ( -- )
<ip-app> main-responder set-global
- 8080 httpd drop ;
+ 8080 httpd wait-for-server ;
MAIN: run-ip-app