[plt-scheme] Simple Server setup abstraction in the PLT Web Server

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Fri Feb 6 12:56:39 EST 2009

>From http://jay-mccarthy.blogspot.com/2009/02/simple-server-setup-abstraction-in-plt.html:

The PLT Web Server provides serve/servlet to start a server
specifically for a single servlet and immediately launch a browser to
it. This is how the Instant Servlet language works.

One of the frustrating things about this interface is that you can't
change what dispatchers the simple servers use, so if you want to
build a dispatcher for a single servlet or start a server and launch a
browser, you must copy the code. Both of these subtasks are now
abstracted into helper functions:

* dispatch/servlet: Builds a dispatcher to run a servlet .
* serve/launch/wait: Starts a Web Server instance and launches a
browser to one of its URLs.

Documentation links:

http://faculty.cs.byu.edu/~jay/plt-doc/web-server/servlet-env_ss.html (now)

http://docs.plt-scheme.org/web-server/servlet-env_ss.html (later)

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.