[plt-scheme] Web server dispatcher call wrapper

From: Rommel M. Martinez (ebzzry at gmail.com)
Date: Sat Nov 21 19:06:03 EST 2009

Is there a way to wrap a call to a dispatcher so that it simulates an
HTTP POST request? For example, if `render-foo' is defined as:

(define (render-foo request x y)
  (local [(define (response-generator make-url) ...)]
    (send/suspend/dispatch response-generator)))

How can I call `render-foo' like this?

  [(x "foo")
   (y "bar")]
  (render-foo request))

Rommel M. Martinez

Posted on the users mailing list.