[racket] web server: how to read the current url?

From: Janos Tobias Locsei (jtlocsei at cantab.net)
Date: Wed Feb 5 17:09:42 EST 2014

>
> current-servlet-continuation-expiration-handler receives the request
> (which contains request-uri) that expired. Is that all you want?
>

That's exactly what I was looking for. Thanks!

Tobias






>
> Jay
>
>
> On Wed, Feb 5, 2014 at 9:26 AM, Janos Tobias Locsei <jtlocsei at cantab.net>
> wrote:
> > Is there a way for a function in the web server to find out the current
> url?
> >
> > I'm using stateful servlets and I'd like to redirect to the start page
> of my
> > app if the continuation expires, using something along the lines of
> >
> > (parameterize
> >   ([current-servlet-continuation-expiration-handler
> >     <send response that redirects to start of app>])
> >   (send/suspend/dispatch ...))
> >
> > I was hoping that I could write the bit inside the <> as a general
> purpose
> > function for all my apps, so that e.g. it would see that the current url
> is
> >
> > http://mydomain.com/myapp;(("k" . "(8 2 17927109)"))
> >
> > and then just strip back the url and redirect to
> >
> > http://mydomain.com/myapp
> >
> > Is that possible?
> >
> > Tobias
> >
> >
> >
> > ____________________
> >   Racket Users list:
> >   http://lists.racket-lang.org/users
> >
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
>
> "The glory of God is Intelligence" - D&C 93
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140205/ae11c1d6/attachment.html>

Posted on the users mailing list.