[plt-scheme] Questions about Web Server usage

From: YC (yinso.chen at gmail.com)
Date: Wed May 30 00:31:45 EDT 2007

On 5/29/07, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> > It's not that difficult: bytes->string/utf-8 and family.
> > The main problem is that if this is going to fail, I don't want to be
> > the one blaimed for it. The server has no reason to look at these
> > values, so it irks me that it crashes by them. Furthermore, by moving
> > the error in the servlet code, it can be caught more effectively and
> > displayed to the user in an appropriate context.

Perhaps an on-demand conversion can be the best of both worlds?  i.e. the
bindings are parsed as bytes, but bytes->string* is called with
extract-binding, so the error can be trapped by servlet, but we don't need
to write explicit conversions in servlet unless necessary (and might be
possible to pass in encoding too to switch between

Just some more ideas...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070529/d1412283/attachment.html>

Posted on the users mailing list.