[plt-scheme] How to use SERVE in the web-server?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jul 30 12:38:13 EDT 2007

You are probably looking for:

configuration-table-sexpr->web-config@

in web-config-unit.ss

and

serve/web-config@

in web-server.ss

Jay

On 7/29/07, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> Hi,
>
> I am updating some code (from December) to the
> current version.
>
> I need to use the same web-server configuration
> in two places, so I (in the old code) did:
>
>    In "config.ss":
>    (require (lib "configuration.ss" "web-server"))
>    (define config-sexp <stuff-that-builds-configuration-as-an-sexp>)
>    (define config (build-developer-configuration config-sexp)
>
> And then in "launch.ss":
>
>      (require (lib "web-server.ss" "web-server")
>               "config.ss")
>
>      (define shutdown
>        (serve config 8888))
>
> Alas, the interface to SERVE has changed (the documentation
> did contain a warning, so that's okay), but I can't figure
> out to use the new server function.
>
> Instead of a configuration it expects a dispatcher, but
> do I turn the configuration into a dispatcher?
>
>
> --
> Jens Axel Søgaard
>
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


-- 
Jay McCarthy <jay.mccarthy at gmail.com>
http://jay.teammccarthy.org


Posted on the users mailing list.