[plt-scheme] Introducing... Stuffers
>From http://jay-mccarthy.blogspot.com/2009/02/introducing-stuffers.html:
The PLT Web Server stateless servlet language allows continuations to
be serialized. This subtle features can produce entirely RESTful Web
applications that use send/suspend, because continuations can be given
to clients, rather than kept on the server.
Before today, the serialization process was not customizable. There
was a single default. But now, you can write your own stuffers using
the Stuffer API and instruct the server to use them in your servlet
code.
Currently there are stuffers for:
* GZip-ing
* Base64 encoding
* MD5 content-addressed filesystem storage
In the future, I will be adding support for encrypting and signing, in
addition to content-addressed database storage through SQLite,
CouchDB, and BerkeleyDB.
Documentation links:
http://faculty.cs.byu.edu/~jay/plt-doc/web-server/stuffers_ss.html (now)
http://docs.plt-scheme.org/web-server/stuffers_ss.html (later)
The default as an example:
http://faculty.cs.byu.edu/~jay/plt-doc/web-server/stuffers_ss.html#(def._((lib._web-server/lang/stuff-url..ss)._make-default-stuffer))
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93