[plt-scheme] ANN: Instaservlet

From: Noel Welsh (noelwelsh at gmail.com)
Date: Fri Feb 29 10:28:53 EST 2008

Hi all,

We've just released a new package called Instaservlet.  Instaservlet
extends Instaweb from setting up the web-server to configuration a
servlet as well.  Running a servlet now requires two extra lines in
addition to the actual server code:

  - requiring the Instaservlet package
  - calling go!

A minimal example is at the end of this email.

Instaservlet also sets up some sensible and robust defaults for memory
management and continuation expiry handling.  It uses the LRU manager,
which is much more robust than the timeout manager.

Here's the example:

 (planet "instaservlet.ss" ("untyped" "instaservlet.plt" 1)))

(define (servlet request)
  '(html (head (title "It's working!"))
         (body (h1 "Instaservlet is in the house!"))))

(go! servlet)

This is a 3.99 release only.


Posted on the users mailing list.