[plt-scheme] Module-based web servlet examples

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Oct 17 12:48:22 EDT 2006

On 10/17/06, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> > There might still be a mismatch.  That page documents the 'request'
> > structure as
> >
> >     (define-struct request (method uri headers bindings host-ip client-ip))
> >
> > But .../PLT\ Scheme\ v352/collects/web-server/request-structs.ss includes
> >
> >     (define-struct request (method uri headers/raw bindings/raw
> >                                  host-ip host-port client-ip))
>
>  > Ought I to be worried by the mismatch?  I think this is being included
>  > by servlet.ss, via servlet-structs.ss, if I'm interpreting the module
>  > loading semantics correctly.
>
> I think the definition of request changed from the official 352 and
> the SVN version 352.6 I am using. If you stick to the documentation
> in the HelpDesk everything ought to fit together.

The documentation describes the public API. Internally are the /raw
versions of headers and bindings.

Jay

BTW Jens, thanks for answering these questions so well.

Jay

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


Posted on the users mailing list.